public class CompactObjectOutput extends java.lang.Object implements java.io.Closeable, java.io.Flushable, java.io.ObjectOutput, ObjectDataOutputI, BLOBOutputI, SecureObjectOutputI
| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOUNCE_POJO |
static int |
ANNOUNCE_POJO_END |
static org.apache.log4j.Logger |
log |
static int |
SIDEBAND_SIGNAL_RESET |
| Constructor and Description |
|---|
CompactObjectOutput(java.io.OutputStream _out)
Creates a CompactObjectOutput that writes to the specified DataOutput.
|
CompactObjectOutput(java.io.OutputStream _out,
SchemaI schema) |
CompactObjectOutput(java.io.OutputStream _out,
SchemaI schema,
java.util.function.Function replaceBoBeforeWrite) |
CompactObjectOutput(java.io.OutputStream _out,
SchemaI schema,
java.util.function.Function replaceBoBeforeWrite,
boolean forServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this CompactObjectOutput and releases any system resources associated with it.
|
void |
flush()
Flushes this CompactObjectOutput by writing any buffered output to the underlying DataOutput.
|
java.lang.String |
getDescription()
Returns a description for this CompactObjectOutput.
|
long |
getLastNetworkActivity()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT regarding the last network activity on this ObjectDataOutputI.
|
void |
reset()
Reset will disregard the state of any objects already written to the stream.
|
CompactObjectOutput |
setBlocksize(int b)
Sets the blocksize for data-transfer to the passed value in bytes.
|
void |
setDescription(java.lang.String d)
Sets a nice description for this CompactObjectOutput.
|
void |
setObjectTransferHandler(ObjectTransferHandlerI _objectTransferHandler)
Sets the ObjectTransferHandlerI for this class.
|
void |
write(byte[] v)
Writes to our DataOutput all the bytes in array b.
|
void |
write(byte[] v,
int off,
int len)
Writes len bytes from array b, in order, to our DataOutput.
|
void |
write(int v)
Writes to our DataOutput the eight low-order bits of the argument b.
|
void |
writeBigDecimal(java.math.BigDecimal v)
Writes a BigDecimal object to our DataOutput.
|
void |
writeBLOB(byte[] b)
Writes the passed byte-array to our DataOutput.
|
void |
writeBLOB(byte[] b,
int offset,
int len)
Writes the passed byte-array to our DataOutput, using passed offset offset and length len.
|
void |
writeBLOB(java.io.DataInput in,
int len)
Reads sz bytes from the passed DataInput is and writes them to our DataOutput.
|
void |
writeBLOB(java.io.InputStream in,
int len)
Reads sz bytes from the passed InputStream is and writes them to our DataOutput.
|
void |
writeBoolean(boolean v)
Writes a boolean value to our DataOutput.
|
void |
writeBooleanObject(java.lang.Boolean v)
Writes a Boolean object to our DataOutput.
|
void |
writeByte(int v)
Writes to our DataOutput the eight low- order bits of the argument v.
|
void |
writeByteObject(java.lang.Byte v)
Writes a Byte object to our DataOutput.
|
void |
writeBytes(java.lang.String v)
Writes a string to our DataOutput.
|
void |
writeChar(int v)
Writes a char value, which is comprised of two bytes, to our DataOutput.
|
void |
writeChars(java.lang.String v)
Writes every character in the string s, to our DataOutput, in order, two bytes per character.
|
void |
writeDate(java.util.Date v)
Writes the Date to our DataOutput.
|
void |
writeDouble(double v)
Writes a double value, which is comprised of eight bytes, to our DataOutput.
|
void |
writeDoubleObject(java.lang.Double v)
Writes a Double object to our DataOutput.
|
void |
writeFloat(float v)
Writes a float value, which is comprised of four bytes, to our DataOutput.
|
void |
writeFloatObject(java.lang.Float v)
Writes a Float object to our DataOutput.
|
void |
writeInt(int v)
Writes an int value, which is comprised of four bytes, to our DataOutput.
|
void |
writeIntegerArray(int[] v)
Writes the int array to our DataOutput.
|
void |
writeIntegerObject(java.lang.Integer v)
Writes a Integer object to our DataOutput.
|
void |
writeLong(long v)
Writes a long value, which is comprised of eight bytes, to our DataOutput.
|
void |
writeLongArray(long[] v)
Writes the long array to our DataOutput.
|
void |
writeLongObject(java.lang.Long v)
Writes a Long object to our DataOutput.
|
void |
writeObject(java.lang.Object o)
Write the specified object to the DataOutput.
|
void |
writeObjectArray(java.lang.Object[] v)
Writes the Object array to our DataOutput.
|
void |
writeShort(int v)
Writes two bytes to our DataOutput to represent the value of the argument.
|
void |
writeShortObject(java.lang.Short v)
Writes a Short object to our DataOutput.
|
void |
writeString(java.lang.String v)
Writes the UTF-8 String to our DataOutput.
|
void |
writeStringArray(java.lang.String[] v)
Writes the String array to our DataOutput.
|
void |
writeUnshared(java.lang.Object o)
Writes an "unshared" object to the DataOutput.
|
void |
writeUTF(java.lang.String v)
Writes the UTF-8 String to our DataOutput.
|
public static final org.apache.log4j.Logger log
public static final int ANNOUNCE_POJO
public static final int ANNOUNCE_POJO_END
public static final int SIDEBAND_SIGNAL_RESET
public CompactObjectOutput(java.io.OutputStream _out)
public CompactObjectOutput(java.io.OutputStream _out,
SchemaI schema)
public CompactObjectOutput(java.io.OutputStream _out,
SchemaI schema,
java.util.function.Function replaceBoBeforeWrite)
public CompactObjectOutput(java.io.OutputStream _out,
SchemaI schema,
java.util.function.Function replaceBoBeforeWrite,
boolean forServer)
public long getLastNetworkActivity()
ObjectDataOutputIgetLastNetworkActivity in interface ObjectDataOutputIpublic CompactObjectOutput setBlocksize(int b)
public void setObjectTransferHandler(ObjectTransferHandlerI _objectTransferHandler)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.io.ObjectOutputclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void write(byte[] v)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputjava.io.IOExceptionpublic void write(byte[] v,
int off,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputjava.io.IOExceptionpublic void write(int v)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface java.io.ObjectOutputjava.io.IOExceptionpublic void writeBoolean(boolean v)
throws java.io.IOException
writeBoolean in interface java.io.DataOutputjava.io.IOExceptionpublic void writeByte(int v)
throws java.io.IOException
writeByte in interface java.io.DataOutputjava.io.IOExceptionpublic void writeBytes(java.lang.String v)
throws java.io.IOException
writeBytes in interface java.io.DataOutputjava.io.IOExceptionpublic void writeChar(int v)
throws java.io.IOException
writeChar in interface java.io.DataOutputjava.io.IOExceptionpublic void writeChars(java.lang.String v)
throws java.io.IOException
writeChars in interface java.io.DataOutputjava.io.IOExceptionpublic void writeDouble(double v)
throws java.io.IOException
writeDouble in interface java.io.DataOutputjava.io.IOExceptionpublic void writeFloat(float v)
throws java.io.IOException
writeFloat in interface java.io.DataOutputjava.io.IOExceptionpublic void writeInt(int v)
throws java.io.IOException
writeInt in interface java.io.DataOutputjava.io.IOExceptionpublic void writeLong(long v)
throws java.io.IOException
writeLong in interface java.io.DataOutputjava.io.IOExceptionpublic void writeShort(int v)
throws java.io.IOException
writeShort in interface java.io.DataOutputjava.io.IOExceptionpublic void writeUTF(java.lang.String v)
throws java.io.IOException
writeUTF in interface java.io.DataOutputjava.io.IOExceptionpublic void writeBooleanObject(java.lang.Boolean v)
throws java.io.IOException
ObjectDataOutputIwriteBooleanObject in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeByteObject(java.lang.Byte v)
throws java.io.IOException
ObjectDataOutputIwriteByteObject in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeDoubleObject(java.lang.Double v)
throws java.io.IOException
ObjectDataOutputIwriteDoubleObject in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeFloatObject(java.lang.Float v)
throws java.io.IOException
ObjectDataOutputIwriteFloatObject in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeIntegerObject(java.lang.Integer v)
throws java.io.IOException
ObjectDataOutputIwriteIntegerObject in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeLongObject(java.lang.Long v)
throws java.io.IOException
ObjectDataOutputIwriteLongObject in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeShortObject(java.lang.Short v)
throws java.io.IOException
ObjectDataOutputIwriteShortObject in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeBigDecimal(java.math.BigDecimal v)
throws java.io.IOException
ObjectDataOutputIwriteBigDecimal in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeString(java.lang.String v)
throws java.io.IOException
ObjectDataOutputIwriteString in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeDate(java.util.Date v)
throws java.io.IOException
ObjectDataOutputIwriteDate in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeStringArray(java.lang.String[] v)
throws java.io.IOException
ObjectDataOutputIwriteStringArray in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeIntegerArray(int[] v)
throws java.io.IOException
ObjectDataOutputIwriteIntegerArray in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeLongArray(long[] v)
throws java.io.IOException
ObjectDataOutputIwriteLongArray in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeObjectArray(java.lang.Object[] v)
throws java.io.IOException
ObjectDataOutputIwriteObjectArray in interface ObjectDataOutputIjava.io.IOExceptionpublic void writeBLOB(byte[] b)
throws java.io.IOException
BLOBOutputIwriteBLOB in interface BLOBOutputIjava.io.IOExceptionpublic void writeBLOB(byte[] b,
int offset,
int len)
throws java.io.IOException
BLOBOutputIwriteBLOB in interface BLOBOutputIjava.io.IOExceptionpublic void writeBLOB(java.io.DataInput in,
int len)
throws java.io.IOException
BLOBOutputIwriteBLOB in interface BLOBOutputIjava.io.IOExceptionpublic void writeBLOB(java.io.InputStream in,
int len)
throws java.io.IOException
BLOBOutputIwriteBLOB in interface BLOBOutputIjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface ObjectDataOutputIflush in interface java.io.Flushableflush in interface java.io.ObjectOutputjava.io.IOExceptionpublic void writeObject(java.lang.Object o)
throws java.io.IOException
writeObject in interface ObjectDataOutputIwriteObject in interface java.io.ObjectOutputjava.io.IOExceptionpublic void writeUnshared(java.lang.Object o)
throws java.io.IOException
writeUnshared in interface ObjectDataOutputIjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in interface ObjectDataOutputIjava.io.IOExceptionpublic void setDescription(java.lang.String d)
setDescription in interface ObjectDataOutputIpublic java.lang.String getDescription()
getDescription in interface ObjectDataOutputICopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.