Class ByteWriter.Bytes
java.lang.Object
org.apache.sis.internal.storage.io.ByteWriter
org.apache.sis.internal.storage.io.ByteWriter.Bytes
- Enclosing class:
- ByteWriter
Writer for
byte
values.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBuffer
The buffers between which to transfer data.private final ByteBuffer
The buffers between which to transfer data. -
Constructor Summary
ConstructorsConstructorDescriptionBytes
(ByteBuffer source, ByteBuffer target) Creates a new writer for the given source. -
Method Summary
Methods inherited from class org.apache.sis.internal.storage.io.ByteWriter
create, create
-
Field Details
-
source
The buffers between which to transfer data. -
target
The buffers between which to transfer data.
-
-
Constructor Details
-
Bytes
Bytes(ByteBuffer source, ByteBuffer target) Creates a new writer for the given source.
-
-
Method Details
-
write
public int write()Write bytes.- Specified by:
write
in classByteWriter
- Returns:
- the number of bytes copied, or 0 if done.
-