Package one.microstream.afs.types
Interface AWritableFile
- All Superinterfaces:
AFile
,AFile.Wrapper
,AItem
,AItem.Wrapper
,AReadableFile
- All Known Subinterfaces:
NioWritableFile
,SqlWritableFile
- All Known Implementing Classes:
NioWritableFile.Default
,SqlWritableFile.Default
public interface AWritableFile extends AReadableFile
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.types.AFile
AFile.Default, AFile.Observer, AFile.Wrapper
Nested classes/interfaces inherited from interface one.microstream.afs.types.AFile.Wrapper
AFile.Wrapper.Abstract<U>
Nested classes/interfaces inherited from interface one.microstream.afs.types.AItem
AItem.Base, AItem.Wrapper
-
Method Summary
Modifier and Type Method Description default long
copyFrom(AReadableFile source)
default long
copyFrom(AReadableFile source, long sourcePosition)
default long
copyFrom(AReadableFile source, long sourcePosition, long length)
default long
copyTo(AWritableFile target)
default long
copyTo(AWritableFile target, long sourcePosition)
default long
copyTo(AWritableFile target, long sourcePosition, long length)
default void
create()
default boolean
delete()
default AReadableFile
downgrade()
default boolean
ensureExists()
default void
moveTo(ADirectory targetDirectory)
default void
moveTo(AWritableFile targetFile)
default boolean
open()
default void
truncate(long newSize)
default AWritableFile
useWriting()
default AWritableFile
useWriting(Object user)
default long
writeBytes(Iterable<? extends ByteBuffer> sources)
default long
writeBytes(ByteBuffer source)
Methods inherited from interface one.microstream.afs.types.AFile
defaultUser, exists, isEmpty, isUsed, iterateObservers, name, registerObserver, removeObserver, toPath, toPathString, tryUseReading, tryUseReading, tryUseWriting, tryUseWriting, type, useReading, useReading
-
Method Details
-
open
default boolean open()- Specified by:
open
in interfaceAReadableFile
-
useWriting
- Specified by:
useWriting
in interfaceAFile
-
useWriting
- Specified by:
useWriting
in interfaceAFile
-
copyTo
- Specified by:
copyTo
in interfaceAReadableFile
-
copyTo
- Specified by:
copyTo
in interfaceAReadableFile
-
copyTo
- Specified by:
copyTo
in interfaceAReadableFile
-
copyFrom
-
copyFrom
-
copyFrom
-
writeBytes
-
writeBytes
-
create
default void create() -
ensureExists
default boolean ensureExists()- Specified by:
ensureExists
in interfaceAFile
-
delete
default boolean delete() -
moveTo
-
moveTo
-
downgrade
-
truncate
default void truncate(long newSize)
-