com.aelitis.azureus.core.diskmanager.file.impl
Class FMFileLimited

java.lang.Object
  extended by com.aelitis.azureus.core.diskmanager.file.impl.FMFileImpl
      extended by com.aelitis.azureus.core.diskmanager.file.impl.FMFileLimited
All Implemented Interfaces:
FMFile

public class FMFileLimited
extends FMFileImpl


Field Summary
 
Fields inherited from class com.aelitis.azureus.core.diskmanager.file.impl.FMFileImpl
READ_ACCESS_MODE, this_mon, WRITE_ACCESS_MODE
 
Fields inherited from interface com.aelitis.azureus.core.diskmanager.file.FMFile
FM_READ, FM_WRITE, FT_COMPACT, FT_LINEAR, FT_PIECE_REORDER, FT_PIECE_REORDER_COMPACT
 
Constructor Summary
protected FMFileLimited(FMFileLimited basis)
           
protected FMFileLimited(FMFileOwner _owner, FMFileManagerImpl _manager, File _file, int _type)
           
 
Method Summary
 void close()
           
protected  void close(boolean explicit)
           
 FMFile createClone()
           
 void ensureOpen(String reason)
           
 long getLength()
           
protected  void getSlot()
           
 void read(DirectByteBuffer[] buffers, long offset)
           
 void read(DirectByteBuffer buffer, long offset)
           
protected  void releaseSlot()
           
 void setAccessMode(int mode)
           
 void setLength(long length)
           
 void setPieceComplete(int piece_number, DirectByteBuffer piece_data)
           
protected  void usedSlot()
           
 void write(DirectByteBuffer[] buffers, long position)
           
 void write(DirectByteBuffer buffer, long position)
           
 
Methods inherited from class com.aelitis.azureus.core.diskmanager.file.impl.FMFileImpl
closeSupport, createDirs, delete, deleteDirs, exists, flush, generateEvidence, getAccessMode, getLengthSupport, getLinkedFile, getManager, getName, getOwner, getStorageType, getString, isClone, isOpen, isPieceCompleteProcessingNeeded, moveFile, openSupport, readSupport, readSupport, renameFile, reopen, setAccessModeSupport, setLengthSupport, setPieceCompleteSupport, setStorageType, writeSupport, writeSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FMFileLimited

protected FMFileLimited(FMFileOwner _owner,
                        FMFileManagerImpl _manager,
                        File _file,
                        int _type)
                 throws FMFileManagerException
Throws:
FMFileManagerException

FMFileLimited

protected FMFileLimited(FMFileLimited basis)
                 throws FMFileManagerException
Throws:
FMFileManagerException
Method Detail

createClone

public FMFile createClone()
                   throws FMFileManagerException
Throws:
FMFileManagerException

ensureOpen

public void ensureOpen(String reason)
                throws FMFileManagerException
Specified by:
ensureOpen in interface FMFile
Overrides:
ensureOpen in class FMFileImpl
Throws:
FMFileManagerException

getSlot

protected void getSlot()

releaseSlot

protected void releaseSlot()

usedSlot

protected void usedSlot()

setAccessMode

public void setAccessMode(int mode)
                   throws FMFileManagerException
Throws:
FMFileManagerException

getLength

public long getLength()
               throws FMFileManagerException
Throws:
FMFileManagerException

setLength

public void setLength(long length)
               throws FMFileManagerException
Throws:
FMFileManagerException

setPieceComplete

public void setPieceComplete(int piece_number,
                             DirectByteBuffer piece_data)
                      throws FMFileManagerException
Throws:
FMFileManagerException

read

public void read(DirectByteBuffer[] buffers,
                 long offset)
          throws FMFileManagerException
Throws:
FMFileManagerException

read

public void read(DirectByteBuffer buffer,
                 long offset)
          throws FMFileManagerException
Throws:
FMFileManagerException

write

public void write(DirectByteBuffer buffer,
                  long position)
           throws FMFileManagerException
Throws:
FMFileManagerException

write

public void write(DirectByteBuffer[] buffers,
                  long position)
           throws FMFileManagerException
Throws:
FMFileManagerException

close

public void close()
           throws FMFileManagerException
Throws:
FMFileManagerException

close

protected void close(boolean explicit)
              throws FMFileManagerException
Throws:
FMFileManagerException