public final class SimpleWritableMedia extends Object implements WritableMedia
| Constructor and Description |
|---|
SimpleWritableMedia(BinaryOutput out,
UserTypeOutput userTypeOutput) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeBoolean(boolean value) |
void |
writeByte(byte value) |
void |
writeByteArray(byte[] value) |
void |
writeChar(char value) |
void |
writeCharArray(char[] value) |
void |
writeDouble(double value) |
void |
writeDoubleArray(double[] value) |
void |
writeFloat(float value) |
void |
writeFloatArray(float[] value) |
void |
writeInt(int value) |
void |
writeIntArray(int[] value) |
void |
writeLong(long value) |
void |
writeLongArray(long[] value) |
<T> void |
writeObject(T value) |
<T> void |
writeObjectArray(T[] value) |
void |
writePackedInteger(int value)
Stores positive integer as a variable length (1-5) sequence of bytes.
|
void |
writeRest(byte[] blob,
int count)
Writes byte blob of unknown data from next versions of model.
|
void |
writeShort(short value) |
void |
writeShortArray(short[] value) |
void |
writeString(String value) |
public SimpleWritableMedia(BinaryOutput out, UserTypeOutput userTypeOutput)
public void writePackedInteger(int value)
throws IOException
WritableMediawritePackedInteger in interface WritableMediavalue - the value to store. Must be positive.IOException - if I/O error occurred.public void writeString(String value) throws IOException
writeString in interface WritableMediaIOExceptionpublic void writeByte(byte value)
throws IOException
writeByte in interface WritableMediaIOExceptionpublic void writeBoolean(boolean value)
throws IOException
writeBoolean in interface WritableMediaIOExceptionpublic void writeChar(char value)
throws IOException
writeChar in interface WritableMediaIOExceptionpublic void writeShort(short value)
throws IOException
writeShort in interface WritableMediaIOExceptionpublic void writeInt(int value)
throws IOException
writeInt in interface WritableMediaIOExceptionpublic void writeLong(long value)
throws IOException
writeLong in interface WritableMediaIOExceptionpublic void writeFloat(float value)
throws IOException
writeFloat in interface WritableMediaIOExceptionpublic void writeDouble(double value)
throws IOException
writeDouble in interface WritableMediaIOExceptionpublic <T> void writeObject(T value)
throws IOException
writeObject in interface WritableMediaIOExceptionpublic void writeByteArray(byte[] value)
throws IOException
writeByteArray in interface WritableMediaIOExceptionpublic void writeCharArray(char[] value)
throws IOException
writeCharArray in interface WritableMediaIOExceptionpublic void writeShortArray(short[] value)
throws IOException
writeShortArray in interface WritableMediaIOExceptionpublic void writeIntArray(int[] value)
throws IOException
writeIntArray in interface WritableMediaIOExceptionpublic void writeLongArray(long[] value)
throws IOException
writeLongArray in interface WritableMediaIOExceptionpublic void writeFloatArray(float[] value)
throws IOException
writeFloatArray in interface WritableMediaIOExceptionpublic void writeDoubleArray(double[] value)
throws IOException
writeDoubleArray in interface WritableMediaIOExceptionpublic <T> void writeObjectArray(T[] value)
throws IOException
writeObjectArray in interface WritableMediaIOExceptionpublic void writeRest(byte[] blob,
int count)
throws IOException
WritableMediawriteRest in interface WritableMediablob - the data to writecount - the actual length of data in supplied blobIOException - if I/O error occurred.Copyright © 2016. All rights reserved.