CodeOutput that writes to a short[].
| Modifier and Type | Field and Description |
|---|---|
| private final short[] | array
array to write to |
| Access | Constructor and Description |
|---|---|
| public | ShortArrayCodeOutput(int
the maximum number of code units that will be written maxSize)Constructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public short[] | |
| public void | write(short codeUnit)
Implements org. |
| public void | write(short u0, short u1)
Implements org. |
| public void | write(short u0, short u1, short u2)
Implements org. |
| public void | write(short u0, short u1, short u2, short u3)
Implements org. |
| public void | write(short u0, short u1, short u2, short u3, short u4)
Implements org. |
| public void | write(byte[] data)
Implements org. |
| public void | write(short[] data)
Implements org. |
| public void | write(int[] data)
Implements org. |
| public void | write(long[] data)
Implements org. |
| public void | writeInt(int value)
Implements org. int, little-endian.
|
| public void | writeLong(long value)
Implements org. long, little-endian.
|
| array | back to summary |
|---|---|
| private final short[] array array to write to | |
| ShortArrayCodeOutput | back to summary |
|---|---|
| public ShortArrayCodeOutput(int maxSize) Constructs an instance.
| |
| getArray | back to summary |
|---|---|
| public short[] getArray() Gets the array. The returned array contains exactly the data written (e.g. no leftover space at the end). | |
| write | back to summary |
|---|---|
| public void write(short codeUnit) Implements org. Doc from org. Writes a code unit. | |
| write | back to summary |
|---|---|
| public void write(short u0, short u1) Implements org. Doc from org. Writes two code units. | |
| write | back to summary |
|---|---|
| public void write(short u0, short u1, short u2) Implements org. Doc from org. Writes three code units. | |
| write | back to summary |
|---|---|
| public void write(short u0, short u1, short u2, short u3) Implements org. Doc from org. Writes four code units. | |
| write | back to summary |
|---|---|
| public void write(short u0, short u1, short u2, short u3, short u4) Implements org. Doc from org. Writes five code units. | |
| write | back to summary |
|---|---|
| public void write(byte[] data) Implements org. Doc from org. Writes the contents of the given array. | |
| write | back to summary |
|---|---|
| public void write(short[] data) Implements org. Doc from org. Writes the contents of the given array. | |
| write | back to summary |
|---|---|
| public void write(int[] data) Implements org. Doc from org. Writes the contents of the given array. | |
| write | back to summary |
|---|---|
| public void write(long[] data) Implements org. Doc from org. Writes the contents of the given array. | |
| writeInt | back to summary |
|---|---|
| public void writeInt(int value) Implements org. Doc from org. Writes an | |
| writeLong | back to summary |
|---|---|
| public void writeLong(long value) Implements org. Doc from org. Writes a | |