Package org.eclipse.serializer.afs.types
Interface AIoHandler
-
- All Superinterfaces:
WriteController
- All Known Implementing Classes:
AIoHandler.Abstract
public interface AIoHandler extends WriteController
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAIoHandler.Abstract<FS,DS,I extends AItem,F extends AFile,D extends ADirectory,R extends AReadableFile,W extends AWritableFile>-
Nested classes/interfaces inherited from interface org.eclipse.serializer.afs.types.WriteController
WriteController.Disabled, WriteController.Enabled
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanclose(AReadableFile file)longcopyFrom(AReadableFile source, long sourcePosition, long length, AWritableFile targetSubject)longcopyFrom(AReadableFile source, long sourcePosition, AWritableFile targetSubject)longcopyFrom(AReadableFile source, AWritableFile targetSubject)longcopyTo(AReadableFile sourceSubject, long sourcePosition, long length, AWritableFile target)longcopyTo(AReadableFile sourceSubject, long sourcePosition, AWritableFile target)longcopyTo(AReadableFile sourceSubject, AWritableFile target)voidcreate(ADirectory directory)voidcreate(AWritableFile file)booleandeleteFile(AWritableFile file)booleanensureExists(ADirectory directory)booleanensureExists(AWritableFile file)booleanexists(ADirectory directory)booleanexists(AFile file)voidinventorize(ADirectory directory)booleanisEmpty(ADirectory directory)booleanisHandledDirectory(ADirectory directory)booleanisHandledFile(AFile file)booleanisHandledItem(AItem item)booleanisHandledReadableFile(AReadableFile file)booleanisHandledWritableFile(AWritableFile file)booleanisOpen(AReadableFile file)XGettingEnum<String>listDirectories(ADirectory parent)XGettingEnum<String>listFiles(ADirectory parent)XGettingEnum<String>listItems(ADirectory parent)voidmoveFile(AWritableFile sourceFile, AWritableFile targetFile)booleanopenReading(AReadableFile file)booleanopenWriting(AWritableFile file)ByteBufferreadBytes(AReadableFile sourceFile)ByteBufferreadBytes(AReadableFile sourceFile, long position)ByteBufferreadBytes(AReadableFile sourceFile, long position, long length)longreadBytes(AReadableFile sourceFile, ByteBuffer targetBuffer)longreadBytes(AReadableFile sourceFile, ByteBuffer targetBuffer, long position)longreadBytes(AReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)longreadBytes(AReadableFile sourceFile, BufferProvider bufferProvider)longreadBytes(AReadableFile sourceFile, BufferProvider bufferProvider, long position)longreadBytes(AReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)longsize(AFile file)voidtruncate(AWritableFile file, long newSize)voidvalidateHandledDirectory(ADirectory directory)voidvalidateHandledFile(AFile file)voidvalidateHandledReadableFile(AReadableFile file)voidvalidateHandledWritableFile(AWritableFile file)longwriteBytes(AWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)-
Methods inherited from interface org.eclipse.serializer.afs.types.WriteController
isWritable, validateIsWritable
-
-
-
-
Method Detail
-
isHandledItem
boolean isHandledItem(AItem item)
-
isHandledFile
boolean isHandledFile(AFile file)
-
isHandledDirectory
boolean isHandledDirectory(ADirectory directory)
-
isHandledReadableFile
boolean isHandledReadableFile(AReadableFile file)
-
isHandledWritableFile
boolean isHandledWritableFile(AWritableFile file)
-
validateHandledFile
void validateHandledFile(AFile file)
-
validateHandledDirectory
void validateHandledDirectory(ADirectory directory)
-
validateHandledReadableFile
void validateHandledReadableFile(AReadableFile file)
-
validateHandledWritableFile
void validateHandledWritableFile(AWritableFile file)
-
size
long size(AFile file)
-
exists
boolean exists(AFile file)
-
exists
boolean exists(ADirectory directory)
-
create
void create(ADirectory directory)
-
create
void create(AWritableFile file)
-
ensureExists
boolean ensureExists(ADirectory directory)
-
ensureExists
boolean ensureExists(AWritableFile file)
-
inventorize
void inventorize(ADirectory directory)
-
isOpen
boolean isOpen(AReadableFile file)
-
openReading
boolean openReading(AReadableFile file)
-
openWriting
boolean openWriting(AWritableFile file)
-
close
boolean close(AReadableFile file)
-
readBytes
ByteBuffer readBytes(AReadableFile sourceFile)
-
readBytes
ByteBuffer readBytes(AReadableFile sourceFile, long position)
-
readBytes
ByteBuffer readBytes(AReadableFile sourceFile, long position, long length)
-
readBytes
long readBytes(AReadableFile sourceFile, ByteBuffer targetBuffer)
-
readBytes
long readBytes(AReadableFile sourceFile, ByteBuffer targetBuffer, long position)
-
readBytes
long readBytes(AReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)
-
readBytes
long readBytes(AReadableFile sourceFile, BufferProvider bufferProvider)
-
readBytes
long readBytes(AReadableFile sourceFile, BufferProvider bufferProvider, long position)
-
readBytes
long readBytes(AReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)
-
copyTo
long copyTo(AReadableFile sourceSubject, AWritableFile target)
-
copyTo
long copyTo(AReadableFile sourceSubject, long sourcePosition, AWritableFile target)
-
copyTo
long copyTo(AReadableFile sourceSubject, long sourcePosition, long length, AWritableFile target)
-
copyFrom
long copyFrom(AReadableFile source, AWritableFile targetSubject)
-
copyFrom
long copyFrom(AReadableFile source, long sourcePosition, AWritableFile targetSubject)
-
copyFrom
long copyFrom(AReadableFile source, long sourcePosition, long length, AWritableFile targetSubject)
-
writeBytes
long writeBytes(AWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)
-
moveFile
void moveFile(AWritableFile sourceFile, AWritableFile targetFile)
-
deleteFile
boolean deleteFile(AWritableFile file)
-
truncate
void truncate(AWritableFile file, long newSize)
-
listItems
XGettingEnum<String> listItems(ADirectory parent)
-
listDirectories
XGettingEnum<String> listDirectories(ADirectory parent)
-
listFiles
XGettingEnum<String> listFiles(ADirectory parent)
-
isEmpty
boolean isEmpty(ADirectory directory)
-
-