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.Default
Nested classes/interfaces inherited from interface one.microstream.afs.types.WriteController
WriteController.Disabled, WriteController.Enabled
-
Method Summary
Modifier and Type Method Description NioReadableFile
castReadableFile(AReadableFile file)
NioWritableFile
castWritableFile(AWritableFile file)
protected boolean
specificClose(NioReadableFile file)
protected long
specificCopyFrom(AReadableFile source, long sourcePosition, long length, NioWritableFile targetSubject)
protected long
specificCopyFrom(AReadableFile source, long sourcePosition, NioWritableFile targetSubject)
protected long
specificCopyFrom(AReadableFile source, NioWritableFile targetSubject)
protected long
specificCopyTo(NioReadableFile sourceSubject, long sourcePosition, long length, AWritableFile target)
protected long
specificCopyTo(NioReadableFile sourceSubject, long sourcePosition, AWritableFile target)
protected long
specificCopyTo(NioReadableFile sourceSubject, AWritableFile target)
protected void
specificCreate(NioWritableFile file)
protected void
specificCreate(ADirectory directory)
protected boolean
specificDeleteFile(NioWritableFile file)
protected boolean
specificExists(NioFileWrapper file)
protected boolean
specificExists(ADirectory directory)
protected void
specificInventorize(ADirectory directory)
protected boolean
specificIsEmpty(ADirectory directory)
protected boolean
specificIsOpen(NioReadableFile file)
protected XGettingEnum<String>
specificListDirectories(ADirectory parent)
protected XGettingEnum<String>
specificListFiles(ADirectory parent)
protected XGettingEnum<String>
specificListItems(ADirectory parent)
protected void
specificMoveFile(NioWritableFile sourceFile, AWritableFile targetFile)
protected boolean
specificOpenReading(NioReadableFile file)
protected boolean
specificOpenWriting(NioWritableFile file)
protected ByteBuffer
specificReadBytes(NioReadableFile sourceFile)
protected ByteBuffer
specificReadBytes(NioReadableFile sourceFile, long position)
protected ByteBuffer
specificReadBytes(NioReadableFile sourceFile, long position, long length)
protected long
specificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer)
protected long
specificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer, long position)
protected long
specificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)
protected long
specificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider)
protected long
specificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider, long position)
protected long
specificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)
protected long
specificSize(NioFileWrapper file)
protected void
specificTargetMoveFile(NioWritableFile sourceFile, NioWritableFile targetFile)
protected void
specificTruncateFile(NioWritableFile targetFile, long newSize)
protected long
specificWriteBytes(NioWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)
protected boolean
subjectDirectoryExists(Path directory)
protected boolean
subjectFileExists(Path file)
protected long
subjectFileSize(Path file)
Path
toPath(String... pathElements)
Path
toPath(AItem item)
protected Path
toSubjectDirectory(ADirectory directory)
protected Path
toSubjectFile(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, isEmpty, 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, writeBytes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.afs.types.AIoHandler
close, copyFrom, copyFrom, copyFrom, copyTo, copyTo, copyTo, create, create, deleteFile, ensureExists, ensureExists, exists, exists, inventorize, isEmpty, 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, writeBytes
Methods inherited from interface one.microstream.afs.types.WriteController
isWritable, validateIsWritable
-
Method Details
-
toPath
- Specified by:
toPath
in interfaceNioIoHandler
-
toPath
- Specified by:
toPath
in interfaceNioIoHandler
-
castReadableFile
- Specified by:
castReadableFile
in interfaceNioIoHandler
- Overrides:
castReadableFile
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
castWritableFile
- Specified by:
castWritableFile
in interfaceNioIoHandler
- Overrides:
castWritableFile
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
toSubjectFile
- Specified by:
toSubjectFile
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
toSubjectDirectory
- Specified by:
toSubjectDirectory
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
subjectFileSize
- Specified by:
subjectFileSize
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
subjectFileExists
- Specified by:
subjectFileExists
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
subjectDirectoryExists
- Specified by:
subjectDirectoryExists
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificSize
- Specified by:
specificSize
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificExists
- Specified by:
specificExists
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificExists
- Specified by:
specificExists
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificListItems
- Specified by:
specificListItems
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificListDirectories
- Specified by:
specificListDirectories
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificListFiles
- Specified by:
specificListFiles
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificInventorize
- Specified by:
specificInventorize
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificIsEmpty
- Specified by:
specificIsEmpty
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificOpenReading
- Specified by:
specificOpenReading
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificIsOpen
- Specified by:
specificIsOpen
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificClose
- Specified by:
specificClose
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificOpenWriting
- Specified by:
specificOpenWriting
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCreate
- Specified by:
specificCreate
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCreate
- Specified by:
specificCreate
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificTruncateFile
- Specified by:
specificTruncateFile
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificDeleteFile
- Specified by:
specificDeleteFile
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
protected long specificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer, long position)- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
protected long specificReadBytes(NioReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
protected long specificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider, long position)- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificReadBytes
protected long specificReadBytes(NioReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)- Specified by:
specificReadBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyTo
- Specified by:
specificCopyTo
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyTo
protected long specificCopyTo(NioReadableFile sourceSubject, long sourcePosition, AWritableFile target)- Specified by:
specificCopyTo
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyTo
protected long specificCopyTo(NioReadableFile sourceSubject, long sourcePosition, long length, AWritableFile target)- Specified by:
specificCopyTo
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyFrom
- Specified by:
specificCopyFrom
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyFrom
protected long specificCopyFrom(AReadableFile source, long sourcePosition, NioWritableFile targetSubject)- Specified by:
specificCopyFrom
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificCopyFrom
protected long specificCopyFrom(AReadableFile source, long sourcePosition, long length, NioWritableFile targetSubject)- Specified by:
specificCopyFrom
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificWriteBytes
protected long specificWriteBytes(NioWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)- Specified by:
specificWriteBytes
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificMoveFile
- Specified by:
specificMoveFile
in classAIoHandler.Abstract<Path,Path,NioItemWrapper,NioFileWrapper,ADirectory,NioReadableFile,NioWritableFile>
-
specificTargetMoveFile
-