Class FastJson2ObjectOutput
java.lang.Object
org.apache.dubbo.common.serialize.fastjson2.FastJson2ObjectOutput
- All Implemented Interfaces:
DataOutput,ObjectOutput
FastJson object output implementation
-
Constructor Summary
ConstructorsConstructorDescriptionFastJson2ObjectOutput(Fastjson2CreatorManager fastjson2CreatorManager, Fastjson2SecurityManager fastjson2SecurityManager, OutputStream out) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidwriteBool(boolean v) voidwriteByte(byte v) voidwriteBytes(byte[] b) voidwriteBytes(byte[] b, int off, int len) voidwriteDouble(double v) voidwriteFloat(float v) voidwriteInt(int v) voidwriteLong(long v) voidwriteObject(Object obj) voidwriteShort(short v) voidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.serialize.ObjectOutput
writeAttachments, writeEvent, writeThrowable
-
Constructor Details
-
FastJson2ObjectOutput
public FastJson2ObjectOutput(Fastjson2CreatorManager fastjson2CreatorManager, Fastjson2SecurityManager fastjson2SecurityManager, OutputStream out)
-
-
Method Details
-
writeBool
- Specified by:
writeBoolin interfaceDataOutput- Throws:
IOException
-
writeByte
- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeShort
- Specified by:
writeShortin interfaceDataOutput- Throws:
IOException
-
writeInt
- Specified by:
writeIntin interfaceDataOutput- Throws:
IOException
-
writeLong
- Specified by:
writeLongin interfaceDataOutput- Throws:
IOException
-
writeFloat
- Specified by:
writeFloatin interfaceDataOutput- Throws:
IOException
-
writeDouble
- Specified by:
writeDoublein interfaceDataOutput- Throws:
IOException
-
writeUTF
- Specified by:
writeUTFin interfaceDataOutput- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeObject
- Specified by:
writeObjectin interfaceObjectOutput- Throws:
IOException
-
flushBuffer
- Specified by:
flushBufferin interfaceDataOutput- Throws:
IOException
-