public class FastJsonObjectOutput extends Object implements ObjectOutput
| Constructor and Description |
|---|
FastJsonObjectOutput(OutputStream out) |
FastJsonObjectOutput(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushBuffer() |
void |
writeBool(boolean v) |
void |
writeByte(byte v) |
void |
writeBytes(byte[] b) |
void |
writeBytes(byte[] b,
int off,
int len) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeObject(Object obj) |
void |
writeShort(short v) |
void |
writeUTF(String v) |
public FastJsonObjectOutput(OutputStream out)
public FastJsonObjectOutput(Writer writer)
public void writeBool(boolean v)
throws IOException
writeBool in interface DataOutputIOExceptionpublic void writeByte(byte v)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(short v)
throws IOException
writeShort 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 writeUTF(String v) throws IOException
writeUTF in interface DataOutputIOExceptionpublic void writeBytes(byte[] b)
throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeBytes(byte[] b,
int off,
int len)
throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeObject(Object obj) throws IOException
writeObject in interface ObjectOutputIOExceptionpublic void flushBuffer()
throws IOException
flushBuffer in interface DataOutputIOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.