Package convex.dlfs.impl
Class DLFileChannel
java.lang.Object
convex.dlfs.impl.DLFileChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,ByteChannel,Channel,ReadableByteChannel,SeekableByteChannel,WritableByteChannel
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static DLFileChannelcreate(DLFileSystem fs, Set<? extends OpenOption> options, DLPath path) booleanisOpen()longposition()position(long newPosition) intread(ByteBuffer dst) longsize()truncate(long size) updateNode(AVector<ACell> newNode) intwrite(ByteBuffer src)
-
Method Details
-
create
public static DLFileChannel create(DLFileSystem fs, Set<? extends OpenOption> options, DLPath path) throws IOException - Throws:
IOException
-
isOpen
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
read
- Specified by:
readin interfaceReadableByteChannel- Specified by:
readin interfaceSeekableByteChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceSeekableByteChannel- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
updateNode
- Throws:
IOException
-
position
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
position
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
size
- Specified by:
sizein interfaceSeekableByteChannel- Throws:
IOException
-
truncate
- Specified by:
truncatein interfaceSeekableByteChannel- Throws:
IOException
-