public class ObjectDataOutputStream extends OutputStream implements ObjectDataOutput, Closeable
| Constructor and Description |
|---|
ObjectDataOutputStream(OutputStream outputStream,
InternalSerializationService serializationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
ByteOrder |
getByteOrder() |
Version |
getVersion()
If the serializer supports versioning it may set the version to use for the serialization on this object.
|
void |
setVersion(Version version)
If the serializer supports versioning it may set the version to use for the serialization on this object.
|
byte[] |
toByteArray() |
byte[] |
toByteArray(int padding) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeBooleanArray(boolean[] booleans) |
void |
writeByte(int v) |
void |
writeByteArray(byte[] bytes) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeCharArray(char[] chars) |
void |
writeChars(String s) |
void |
writeData(Data data) |
void |
writeDouble(double v) |
void |
writeDoubleArray(double[] doubles) |
void |
writeFloat(float v) |
void |
writeFloatArray(float[] floats) |
void |
writeInt(int v) |
void |
writeIntArray(int[] ints) |
void |
writeLong(long v) |
void |
writeLongArray(long[] longs) |
void |
writeObject(Object object) |
void |
writeShort(int v) |
void |
writeShortArray(short[] shorts) |
void |
writeUTF(String str) |
void |
writeUTFArray(String[] strings) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVersionprotected Version version
public ObjectDataOutputStream(OutputStream outputStream, InternalSerializationService serializationService)
public void write(int b)
throws IOException
write in interface DataOutputwrite in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputwrite in class OutputStreamIOExceptionpublic void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String s) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeByteArray(byte[] bytes)
throws IOException
writeByteArray in interface ObjectDataOutputbytes - byte array to be writtenIOExceptionpublic void writeBooleanArray(boolean[] booleans)
throws IOException
writeBooleanArray in interface ObjectDataOutputbooleans - boolean array to be writtenIOExceptionpublic void writeCharArray(char[] chars)
throws IOException
writeCharArray in interface ObjectDataOutputchars - char array to be writtenIOExceptionpublic void writeIntArray(int[] ints)
throws IOException
writeIntArray in interface ObjectDataOutputints - int array to be writtenIOExceptionpublic void writeLongArray(long[] longs)
throws IOException
writeLongArray in interface ObjectDataOutputlongs - long array to be writtenIOExceptionpublic void writeDoubleArray(double[] doubles)
throws IOException
writeDoubleArray in interface ObjectDataOutputdoubles - double array to be writtenIOExceptionpublic void writeFloatArray(float[] floats)
throws IOException
writeFloatArray in interface ObjectDataOutputfloats - float array to be writtenIOExceptionpublic void writeShortArray(short[] shorts)
throws IOException
writeShortArray in interface ObjectDataOutputshorts - short array to be writtenIOExceptionpublic void writeUTFArray(String[] strings) throws IOException
writeUTFArray in interface ObjectDataOutputstrings - String array to be writtenIOExceptionpublic void writeUTF(String str) throws IOException
writeUTF in interface DataOutputIOExceptionpublic void write(byte[] b)
throws IOException
write in interface DataOutputwrite in class OutputStreamIOExceptionpublic void writeObject(Object object) throws IOException
writeObject in interface ObjectDataOutputobject - object to be writtenIOExceptionpublic void writeData(Data data) throws IOException
writeData in interface ObjectDataOutputdata - data to be writtenIOExceptionpublic byte[] toByteArray()
toByteArray in interface ObjectDataOutputpublic byte[] toByteArray(int padding)
toByteArray in interface ObjectDataOutputpadding - padding bytes at the beginning of the byte-array.public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic ByteOrder getByteOrder()
getByteOrder in interface ObjectDataOutputpublic void setVersion(Version version)
version - public Version getVersion()
getVersion in interface VersionAwareCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.