public final class ShortArrayCodeOutput extends BaseCodeCursor implements CodeOutput
CodeOutput that writes to a short[].| Constructor and Description |
|---|
ShortArrayCodeOutput(int maxSize)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
short[] |
getArray()
Gets the array.
|
void |
write(byte[] data)
Writes the contents of the given array.
|
void |
write(int[] data)
Writes the contents of the given array.
|
void |
write(long[] data)
Writes the contents of the given array.
|
void |
write(short codeUnit)
Writes a code unit.
|
void |
write(short[] data)
Writes the contents of the given array.
|
void |
write(short u0,
short u1)
Writes two code units.
|
void |
write(short u0,
short u1,
short u2)
Writes three code units.
|
void |
write(short u0,
short u1,
short u2,
short u3)
Writes four code units.
|
void |
write(short u0,
short u1,
short u2,
short u3,
short u4)
Writes five code units.
|
void |
writeInt(int value)
Writes an
int, little-endian. |
void |
writeLong(long value)
Writes a
long, little-endian. |
advance, baseAddressForCursor, cursor, setBaseAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbaseAddressForCursor, cursor, setBaseAddresspublic ShortArrayCodeOutput(int maxSize)
maxSize - the maximum number of code units that will be writtenpublic short[] getArray()
public void write(short codeUnit)
write in interface CodeOutputpublic void write(short u0,
short u1)
write in interface CodeOutputpublic void write(short u0,
short u1,
short u2)
write in interface CodeOutputpublic void write(short u0,
short u1,
short u2,
short u3)
write in interface CodeOutputpublic void write(short u0,
short u1,
short u2,
short u3,
short u4)
write in interface CodeOutputpublic void writeInt(int value)
int, little-endian.writeInt in interface CodeOutputpublic void writeLong(long value)
long, little-endian.writeLong in interface CodeOutputpublic void write(byte[] data)
write in interface CodeOutputpublic void write(short[] data)
write in interface CodeOutputpublic void write(int[] data)
write in interface CodeOutputpublic void write(long[] data)
write in interface CodeOutputCopyright © 2020. All Rights Reserved.