Class ByteWriter.Shorts
java.lang.Object
org.apache.sis.internal.storage.io.ByteWriter
org.apache.sis.internal.storage.io.ByteWriter.Shorts
- Enclosing class:
ByteWriter
Writer for
short
values.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShortBuffer
The buffers between which to transfer data.private final ShortBuffer
The buffers between which to transfer data. -
Constructor Summary
ConstructorsConstructorDescriptionShorts
(ShortBuffer 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
-
Shorts
Shorts(ShortBuffer 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.
-