Package net.royalur.lut.store
Class DataSink
java.lang.Object
net.royalur.lut.store.DataSink
- Direct Known Subclasses:
DataSink.FileDataSink
Provides an interface to write binary data.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Provides an interface to write binary data to a file. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
write
(Consumer<ByteBuffer> writeFn) abstract void
writeChunked
(ChunkedWriter chunkWriter, int bytesPerValue, int startIndex, int endIndex)
-
Constructor Details
-
DataSink
public DataSink()
-
-
Method Details
-
write
- Throws:
IOException
-
writeChunked
public abstract void writeChunked(ChunkedWriter chunkWriter, int bytesPerValue, int startIndex, int endIndex) throws IOException - Throws:
IOException
-