public class JavaObjectOutput extends NativeJavaObjectOutput
| Constructor and Description |
|---|
JavaObjectOutput(OutputStream os) |
JavaObjectOutput(OutputStream os,
boolean compact) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushBuffer()
Flush buffer.
|
void |
writeObject(Object obj)
write object.
|
void |
writeUTF(String v)
Write string.
|
writeBool, writeByte, writeBytes, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writeShortpublic JavaObjectOutput(OutputStream os) throws IOException
IOExceptionpublic JavaObjectOutput(OutputStream os, boolean compact) throws IOException
IOExceptionpublic void writeUTF(String v) throws IOException
DataOutputwriteUTF in interface DataOutputwriteUTF in class NativeJavaObjectOutputv - value.IOExceptionpublic void writeObject(Object obj) throws IOException
ObjectOutputwriteObject in interface ObjectOutputwriteObject in class NativeJavaObjectOutputobj - object.IOExceptionpublic void flushBuffer()
throws IOException
DataOutputflushBuffer in interface DataOutputflushBuffer in class NativeJavaObjectOutputIOExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.