com.hazelcast.nio.serialization
Class ObjectDataOutputStream
java.lang.Object
java.io.OutputStream
com.hazelcast.nio.serialization.ObjectDataOutputStream
- All Implemented Interfaces:
- com.hazelcast.nio.ObjectDataOutput, Closeable, DataOutput, Flushable
public class ObjectDataOutputStream
- extends OutputStream
- implements com.hazelcast.nio.ObjectDataOutput, Closeable
- Author:
- mdogan 01/23/13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectDataOutputStream
public ObjectDataOutputStream(OutputStream outputStream,
SerializationService serializationService)
ObjectDataOutputStream
public ObjectDataOutputStream(OutputStream outputStream,
SerializationService serializationService,
ByteOrder byteOrder)
write
public void write(int b)
throws IOException
- Specified by:
write
in interface DataOutput
- Specified by:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Specified by:
write
in interface DataOutput
- Overrides:
write
in class OutputStream
- Throws:
IOException
writeBoolean
public void writeBoolean(boolean v)
throws IOException
- Specified by:
writeBoolean
in interface DataOutput
- Throws:
IOException
writeByte
public void writeByte(int v)
throws IOException
- Specified by:
writeByte
in interface DataOutput
- Throws:
IOException
writeShort
public void writeShort(int v)
throws IOException
- Specified by:
writeShort
in interface DataOutput
- Throws:
IOException
writeChar
public void writeChar(int v)
throws IOException
- Specified by:
writeChar
in interface DataOutput
- Throws:
IOException
writeInt
public void writeInt(int v)
throws IOException
- Specified by:
writeInt
in interface DataOutput
- Throws:
IOException
writeLong
public void writeLong(long v)
throws IOException
- Specified by:
writeLong
in interface DataOutput
- Throws:
IOException
writeFloat
public void writeFloat(float v)
throws IOException
- Specified by:
writeFloat
in interface DataOutput
- Throws:
IOException
writeDouble
public void writeDouble(double v)
throws IOException
- Specified by:
writeDouble
in interface DataOutput
- Throws:
IOException
writeBytes
public void writeBytes(String s)
throws IOException
- Specified by:
writeBytes
in interface DataOutput
- Throws:
IOException
writeChars
public void writeChars(String s)
throws IOException
- Specified by:
writeChars
in interface DataOutput
- Throws:
IOException
writeCharArray
public void writeCharArray(char[] chars)
throws IOException
- Specified by:
writeCharArray
in interface com.hazelcast.nio.ObjectDataOutput
- Throws:
IOException
writeIntArray
public void writeIntArray(int[] ints)
throws IOException
- Specified by:
writeIntArray
in interface com.hazelcast.nio.ObjectDataOutput
- Throws:
IOException
writeLongArray
public void writeLongArray(long[] longs)
throws IOException
- Specified by:
writeLongArray
in interface com.hazelcast.nio.ObjectDataOutput
- Throws:
IOException
writeDoubleArray
public void writeDoubleArray(double[] doubles)
throws IOException
- Specified by:
writeDoubleArray
in interface com.hazelcast.nio.ObjectDataOutput
- Throws:
IOException
writeFloatArray
public void writeFloatArray(float[] floats)
throws IOException
- Specified by:
writeFloatArray
in interface com.hazelcast.nio.ObjectDataOutput
- Throws:
IOException
writeShortArray
public void writeShortArray(short[] shorts)
throws IOException
- Specified by:
writeShortArray
in interface com.hazelcast.nio.ObjectDataOutput
- Throws:
IOException
writeUTF
public void writeUTF(String str)
throws IOException
- Specified by:
writeUTF
in interface DataOutput
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Specified by:
write
in interface DataOutput
- Overrides:
write
in class OutputStream
- Throws:
IOException
writeObject
public void writeObject(Object object)
throws IOException
- Specified by:
writeObject
in interface com.hazelcast.nio.ObjectDataOutput
- Throws:
IOException
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArray
in interface com.hazelcast.nio.ObjectDataOutput
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class OutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException
getSerializationContext
public SerializationContext getSerializationContext()
getByteOrder
public ByteOrder getByteOrder()
- Specified by:
getByteOrder
in interface com.hazelcast.nio.ObjectDataOutput
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.