Package one.microstream.afs.nio.types
Class NioIoHandler.Default
java.lang.Object
one.microstream.afs.types.AIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
one.microstream.afs.nio.types.NioIoHandler.Default
- All Implemented Interfaces:
NioIoHandler,AIoHandler,WriteController
- Enclosing interface:
- NioIoHandler
public static final class NioIoHandler.Default extends AIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile> implements NioIoHandler
-
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.nio.types.NioIoHandler
NioIoHandler.DefaultNested classes/interfaces inherited from interface one.microstream.afs.types.WriteController
WriteController.Disabled, WriteController.Enabled -
Method Summary
Modifier and Type Method Description NioReadableFilecastReadableFile(AReadableFile file)NioWritableFilecastWritableFile(AWritableFile file)protected booleanspecificClose(NioReadableFile file)protected longspecificCopyFrom(AReadableFile source, long sourcePosition, long length, NioWritableFile targetSubject)protected longspecificCopyFrom(AReadableFile source, long sourcePosition, NioWritableFile targetSubject)protected longspecificCopyFrom(AReadableFile source, NioWritableFile targetSubject)protected longspecificCopyTo(NioReadableFile sourceSubject, long sourcePosition, long length, AWritableFile target)protected longspecificCopyTo(NioReadableFile sourceSubject, long sourcePosition, AWritableFile target)protected longspecificCopyTo(NioReadableFile sourceSubject, AWritableFile target)protected voidspecificCreate(NioWritableFile file)protected voidspecificCreate(ADirectory directory)protected booleanspecificDeleteFile(NioWritableFile file)protected booleanspecificExists(NioFileWrapper file)protected booleanspecificExists(ADirectory directory)protected voidspecificInventorize(ADirectory directory)protected booleanspecificIsOpen(NioReadableFile file)protected XGettingEnum<String>specificListDirectories(ADirectory parent)protected XGettingEnum<String>specificListFiles(ADirectory parent)protected XGettingEnum<String>specificListItems(ADirectory parent)protected voidspecificMoveFile(NioWritableFile sourceFile, AWritableFile targetFile)protected booleanspecificOpenReading(NioReadableFile file)protected booleanspecificOpenWriting(NioWritableFile file)protected ByteBufferspecificReadBytes(NioReadableFile sourceFile)protected ByteBufferspecificReadBytes(NioReadableFile sourceFile, long position)protected ByteBufferspecificReadBytes(NioReadableFile sourceFile, long position, long length)protected longspecificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer)protected longspecificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer, long position)protected longspecificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)protected longspecificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider)protected longspecificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider, long position)protected longspecificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)protected longspecificSize(NioFileWrapper file)protected voidspecificTargetMoveFile(NioWritableFile sourceFile, NioWritableFile targetFile)protected voidspecificTruncateFile(NioWritableFile targetFile, long newSize)protected longspecificWriteBytes(NioWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)protected booleansubjectDirectoryExists(Path directory)protected booleansubjectFileExists(Path file)protected longsubjectFileSize(Path file)PathtoPath(String... pathElements)PathtoPath(AItem item)protected PathtoSubjectDirectory(ADirectory directory)protected PathtoSubjectFile(AFile file)Methods inherited from class one.microstream.afs.types.AIoHandler.Abstract
close, copyFrom, copyFrom, copyFrom, copyGeneric, copyGeneric, copyGeneric, copyTo, copyTo, copyTo, create, create, createUnhandledTypeException, createUnhandledTypeException, createUnhandledTypeExceptionDirectory, createUnhandledTypeExceptionFile, createUnhandledTypeExceptionItem, createUnhandledTypeExceptionReadableFile, createUnhandledTypeExceptionWritableFile, deleteFile, ensureExists, ensureExists, exists, exists, inventorize, isHandledDirectory, isHandledFile, isHandledItem, isHandledReadableFile, isHandledWritableFile, isOpen, isWritable, listDirectories, listFiles, listItems, moveFile, openReading, openWriting, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, size, truncate, validateHandledDirectory, validateHandledFile, validateHandledReadableFile, validateHandledWritableFile, validateIsWritable, writeBytesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.afs.types.AIoHandler
close, copyFrom, copyFrom, copyFrom, copyTo, copyTo, copyTo, create, create, deleteFile, ensureExists, ensureExists, exists, exists, inventorize, isHandledDirectory, isHandledFile, isHandledItem, isHandledReadableFile, isHandledWritableFile, isOpen, listDirectories, listFiles, listItems, moveFile, openReading, openWriting, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, size, truncate, validateHandledDirectory, validateHandledFile, validateHandledReadableFile, validateHandledWritableFile, writeBytesMethods inherited from interface one.microstream.afs.types.WriteController
isWritable, validateIsWritable
-
Method Details
-
toPath
- Specified by:
toPathin interfaceNioIoHandler
-
toPath
- Specified by:
toPathin interfaceNioIoHandler
-
castReadableFile
- Specified by:
castReadableFilein interfaceNioIoHandler- Overrides:
castReadableFilein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
castWritableFile
- Specified by:
castWritableFilein interfaceNioIoHandler- Overrides:
castWritableFilein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
toSubjectFile
- Specified by:
toSubjectFilein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
toSubjectDirectory
- Specified by:
toSubjectDirectoryin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
subjectFileSize
- Specified by:
subjectFileSizein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
subjectFileExists
- Specified by:
subjectFileExistsin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
subjectDirectoryExists
- Specified by:
subjectDirectoryExistsin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificSize
- Specified by:
specificSizein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificExists
- Specified by:
specificExistsin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificExists
- Specified by:
specificExistsin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificListItems
- Specified by:
specificListItemsin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificListDirectories
- Specified by:
specificListDirectoriesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificListFiles
- Specified by:
specificListFilesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificInventorize
- Specified by:
specificInventorizein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificOpenReading
- Specified by:
specificOpenReadingin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificIsOpen
- Specified by:
specificIsOpenin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificClose
- Specified by:
specificClosein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificOpenWriting
- Specified by:
specificOpenWritingin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCreate
- Specified by:
specificCreatein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCreate
- Specified by:
specificCreatein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificTruncateFile
- Specified by:
specificTruncateFilein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificDeleteFile
- Specified by:
specificDeleteFilein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
protected long specificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer, long position)- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
protected long specificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
protected long specificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider, long position)- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
protected long specificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)- Specified by:
specificReadBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyTo
- Specified by:
specificCopyToin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyTo
protected long specificCopyTo(NioReadableFile sourceSubject, long sourcePosition, AWritableFile target)- Specified by:
specificCopyToin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyTo
protected long specificCopyTo(NioReadableFile sourceSubject, long sourcePosition, long length, AWritableFile target)- Specified by:
specificCopyToin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyFrom
- Specified by:
specificCopyFromin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyFrom
protected long specificCopyFrom(AReadableFile source, long sourcePosition, NioWritableFile targetSubject)- Specified by:
specificCopyFromin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyFrom
protected long specificCopyFrom(AReadableFile source, long sourcePosition, long length, NioWritableFile targetSubject)- Specified by:
specificCopyFromin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificWriteBytes
protected long specificWriteBytes(NioWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)- Specified by:
specificWriteBytesin classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificMoveFile
- Specified by:
specificMoveFilein classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificTargetMoveFile
-