Package one.microstream.afs.types
Class AIoHandler.Abstract<FS,DS,I extends AItem,F extends AFile,D extends ADirectory,R extends AReadableFile,W extends AWritableFile>
java.lang.Object
one.microstream.afs.types.AIoHandler.Abstract<FS,DS,I,F,D,R,W>
- All Implemented Interfaces:
AIoHandler,WriteController
- Direct Known Subclasses:
NioIoHandler.Default,SqlIoHandler.Default
- Enclosing interface:
- AIoHandler
public abstract static class AIoHandler.Abstract<FS,DS,I extends AItem,F extends AFile,D extends ADirectory,R extends AReadableFile,W extends AWritableFile> extends Object implements AIoHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.types.AIoHandler
AIoHandler.Abstract<FS,DS,I extends AItem,F extends AFile,D extends ADirectory,R extends AReadableFile,W extends AWritableFile>Nested classes/interfaces inherited from interface one.microstream.afs.types.WriteController
WriteController.Disabled, WriteController.Enabled -
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected RcastReadableFile(AReadableFile file)protected WcastWritableFile(AWritableFile file)booleanclose(AReadableFile file)longcopyFrom(AReadableFile source, long sourcePosition, long length, AWritableFile targetSubject)longcopyFrom(AReadableFile source, long sourcePosition, AWritableFile targetSubject)longcopyFrom(AReadableFile source, AWritableFile targetSubject)protected longcopyGeneric(AReadableFile source, long sourcePosition, AWritableFile target)protected longcopyGeneric(AReadableFile source, long sourcePosition, AWritableFile target, long length)protected longcopyGeneric(AReadableFile source, AWritableFile target)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)protected RuntimeExceptioncreateUnhandledTypeException(Object subject, Class<?> checkedType)protected RuntimeExceptioncreateUnhandledTypeException(Object subject, Class<?> checkedType, int cutStackTrace)protected RuntimeExceptioncreateUnhandledTypeExceptionDirectory(Object subject)protected RuntimeExceptioncreateUnhandledTypeExceptionFile(Object subject)protected RuntimeExceptioncreateUnhandledTypeExceptionItem(Object subject)protected RuntimeExceptioncreateUnhandledTypeExceptionReadableFile(Object subject)protected RuntimeExceptioncreateUnhandledTypeExceptionWritableFile(Object subject)booleandeleteFile(AWritableFile file)booleanensureExists(ADirectory directory)booleanensureExists(AWritableFile file)booleanexists(ADirectory directory)booleanexists(AFile file)voidinventorize(ADirectory directory)booleanisHandledDirectory(ADirectory directory)booleanisHandledFile(AFile file)booleanisHandledItem(AItem item)booleanisHandledReadableFile(AReadableFile file)booleanisHandledWritableFile(AWritableFile file)booleanisOpen(AReadableFile file)booleanisWritable()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)protected abstract booleanspecificClose(R file)protected abstract longspecificCopyFrom(AReadableFile source, long sourcePosition, long length, W targetSubject)protected abstract longspecificCopyFrom(AReadableFile source, long sourcePosition, W targetSubject)protected abstract longspecificCopyFrom(AReadableFile source, W targetSubject)protected abstract longspecificCopyTo(R sourceSubject, long sourcePosition, long length, AWritableFile target)protected abstract longspecificCopyTo(R sourceSubject, long sourcePosition, AWritableFile target)protected abstract longspecificCopyTo(R sourceSubject, AWritableFile target)protected abstract voidspecificCreate(D file)protected abstract voidspecificCreate(W file)protected abstract booleanspecificDeleteFile(W file)protected abstract booleanspecificExists(D directory)protected abstract booleanspecificExists(F file)protected abstract voidspecificInventorize(D directory)protected abstract booleanspecificIsOpen(R file)protected abstract XGettingEnum<String>specificListDirectories(D parent)protected abstract XGettingEnum<String>specificListFiles(D parent)protected abstract XGettingEnum<String>specificListItems(D parent)protected abstract voidspecificMoveFile(W sourceFile, AWritableFile targetFile)protected abstract booleanspecificOpenReading(R file)protected abstract booleanspecificOpenWriting(W file)protected abstract ByteBufferspecificReadBytes(R sourceFile)protected abstract ByteBufferspecificReadBytes(R sourceFile, long position)protected abstract ByteBufferspecificReadBytes(R sourceFile, long position, long length)protected abstract longspecificReadBytes(R sourceFile, ByteBuffer targetBuffer)protected abstract longspecificReadBytes(R sourceFile, ByteBuffer targetBuffer, long position)protected abstract longspecificReadBytes(R sourceFile, ByteBuffer targetBuffer, long position, long length)protected abstract longspecificReadBytes(R sourceFile, BufferProvider bufferProvider)protected abstract longspecificReadBytes(R sourceFile, BufferProvider bufferProvider, long position)protected abstract longspecificReadBytes(R sourceFile, BufferProvider bufferProvider, long position, long length)protected abstract longspecificSize(F file)protected abstract voidspecificTruncateFile(W file, long newSize)protected abstract longspecificWriteBytes(W targetFile, Iterable<? extends ByteBuffer> sourceBuffers)protected abstract booleansubjectDirectoryExists(DS directory)protected abstract booleansubjectFileExists(FS file)protected abstract longsubjectFileSize(FS file)protected abstract DStoSubjectDirectory(ADirectory directory)protected abstract FStoSubjectFile(AFile file)voidtruncate(AWritableFile file, long newSize)voidvalidateHandledDirectory(ADirectory directory)voidvalidateHandledFile(AFile file)voidvalidateHandledReadableFile(AReadableFile file)voidvalidateHandledWritableFile(AWritableFile file)voidvalidateIsWritable()longwriteBytes(AWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)
-
Constructor Details
-
Method Details
-
validateIsWritable
public final void validateIsWritable()- Specified by:
validateIsWritablein interfaceWriteController
-
isWritable
public final boolean isWritable()- Specified by:
isWritablein interfaceWriteController
-
specificSize
-
specificExists
-
specificExists
-
specificListItems
-
specificListDirectories
-
specificListFiles
-
specificInventorize
-
specificIsOpen
-
specificOpenReading
-
specificOpenWriting
-
specificClose
-
specificCreate
-
specificCreate
-
specificReadBytes
-
specificReadBytes
-
specificReadBytes
-
specificReadBytes
-
specificReadBytes
-
specificReadBytes
protected abstract long specificReadBytes(R sourceFile, ByteBuffer targetBuffer, long position, long length) -
specificReadBytes
-
specificReadBytes
protected abstract long specificReadBytes(R sourceFile, BufferProvider bufferProvider, long position) -
specificReadBytes
protected abstract long specificReadBytes(R sourceFile, BufferProvider bufferProvider, long position, long length) -
specificCopyTo
-
specificCopyTo
-
specificCopyTo
protected abstract long specificCopyTo(R sourceSubject, long sourcePosition, long length, AWritableFile target) -
specificCopyFrom
-
specificCopyFrom
protected abstract long specificCopyFrom(AReadableFile source, long sourcePosition, W targetSubject) -
specificCopyFrom
protected abstract long specificCopyFrom(AReadableFile source, long sourcePosition, long length, W targetSubject) -
specificWriteBytes
protected abstract long specificWriteBytes(W targetFile, Iterable<? extends ByteBuffer> sourceBuffers) -
specificMoveFile
-
specificDeleteFile
-
specificTruncateFile
-
copyGeneric
-
copyGeneric
-
copyGeneric
protected long copyGeneric(AReadableFile source, long sourcePosition, AWritableFile target, long length) -
createUnhandledTypeException
-
createUnhandledTypeException
protected RuntimeException createUnhandledTypeException(Object subject, Class<?> checkedType, int cutStackTrace) -
createUnhandledTypeExceptionItem
-
createUnhandledTypeExceptionFile
-
createUnhandledTypeExceptionDirectory
-
createUnhandledTypeExceptionReadableFile
-
createUnhandledTypeExceptionWritableFile
-
isHandledItem
- Specified by:
isHandledItemin interfaceAIoHandler
-
isHandledFile
- Specified by:
isHandledFilein interfaceAIoHandler
-
isHandledDirectory
- Specified by:
isHandledDirectoryin interfaceAIoHandler
-
isHandledReadableFile
- Specified by:
isHandledReadableFilein interfaceAIoHandler
-
isHandledWritableFile
- Specified by:
isHandledWritableFilein interfaceAIoHandler
-
validateHandledFile
- Specified by:
validateHandledFilein interfaceAIoHandler
-
validateHandledDirectory
- Specified by:
validateHandledDirectoryin interfaceAIoHandler
-
validateHandledReadableFile
- Specified by:
validateHandledReadableFilein interfaceAIoHandler
-
validateHandledWritableFile
- Specified by:
validateHandledWritableFilein interfaceAIoHandler
-
castReadableFile
-
castWritableFile
-
toSubjectFile
-
toSubjectDirectory
-
subjectFileSize
-
subjectFileExists
-
subjectDirectoryExists
-
size
- Specified by:
sizein interfaceAIoHandler
-
exists
- Specified by:
existsin interfaceAIoHandler
-
exists
- Specified by:
existsin interfaceAIoHandler
-
listItems
- Specified by:
listItemsin interfaceAIoHandler
-
listDirectories
- Specified by:
listDirectoriesin interfaceAIoHandler
-
listFiles
- Specified by:
listFilesin interfaceAIoHandler
-
inventorize
- Specified by:
inventorizein interfaceAIoHandler
-
openReading
- Specified by:
openReadingin interfaceAIoHandler
-
isOpen
- Specified by:
isOpenin interfaceAIoHandler
-
close
- Specified by:
closein interfaceAIoHandler
-
openWriting
- Specified by:
openWritingin interfaceAIoHandler
-
create
- Specified by:
createin interfaceAIoHandler
-
create
- Specified by:
createin interfaceAIoHandler
-
ensureExists
- Specified by:
ensureExistsin interfaceAIoHandler
-
ensureExists
- Specified by:
ensureExistsin interfaceAIoHandler
-
readBytes
- Specified by:
readBytesin interfaceAIoHandler
-
readBytes
- Specified by:
readBytesin interfaceAIoHandler
-
readBytes
- Specified by:
readBytesin interfaceAIoHandler
-
readBytes
- Specified by:
readBytesin interfaceAIoHandler
-
readBytes
- Specified by:
readBytesin interfaceAIoHandler
-
readBytes
public long readBytes(AReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)- Specified by:
readBytesin interfaceAIoHandler
-
readBytes
- Specified by:
readBytesin interfaceAIoHandler
-
readBytes
- Specified by:
readBytesin interfaceAIoHandler
-
readBytes
public long readBytes(AReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)- Specified by:
readBytesin interfaceAIoHandler
-
copyTo
- Specified by:
copyToin interfaceAIoHandler
-
copyTo
- Specified by:
copyToin interfaceAIoHandler
-
copyTo
public long copyTo(AReadableFile sourceSubject, long sourcePosition, long length, AWritableFile target)- Specified by:
copyToin interfaceAIoHandler
-
copyFrom
- Specified by:
copyFromin interfaceAIoHandler
-
copyFrom
- Specified by:
copyFromin interfaceAIoHandler
-
copyFrom
public long copyFrom(AReadableFile source, long sourcePosition, long length, AWritableFile targetSubject)- Specified by:
copyFromin interfaceAIoHandler
-
writeBytes
- Specified by:
writeBytesin interfaceAIoHandler
-
moveFile
- Specified by:
moveFilein interfaceAIoHandler
-
deleteFile
- Specified by:
deleteFilein interfaceAIoHandler
-
truncate
- Specified by:
truncatein interfaceAIoHandler
-