public class AMF3Serializer extends DataOutputStream implements ObjectOutput, AMF3Constants
| Modifier and Type | Field and Description |
|---|---|
protected Channel |
channel |
protected GraniteContext |
context |
protected Converters |
converters |
protected boolean |
debug |
protected boolean |
debugMore |
protected boolean |
externalizeBigDecimal |
protected boolean |
externalizeBigInteger |
protected boolean |
externalizeLong |
protected static Logger |
log |
protected static Logger |
logMore |
protected Map<String,IndexedJavaClassDescriptor> |
storedClassDescriptors |
protected Map<Object,Integer> |
storedObjects |
protected Map<String,Integer> |
storedStrings |
protected XMLUtil |
xmlUtil |
writtenoutAMF3_ARRAY, AMF3_BOOLEAN_FALSE, AMF3_BOOLEAN_TRUE, AMF3_BYTEARRAY, AMF3_DATE, AMF3_INTEGER, AMF3_INTEGER_MAX, AMF3_INTEGER_MIN, AMF3_NULL, AMF3_NUMBER, AMF3_OBJECT, AMF3_STRING, AMF3_UNDEFINED, AMF3_VECTOR_INT, AMF3_VECTOR_NUMBER, AMF3_VECTOR_OBJECT, AMF3_VECTOR_UINT, AMF3_XML, AMF3_XMLSTRING| Constructor and Description |
|---|
AMF3Serializer(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
protected IndexedJavaClassDescriptor |
addToStoredClassDescriptors(Class<?> clazz) |
protected void |
addToStoredObjects(Object o) |
protected void |
addToStoredStrings(String s) |
protected Channel |
getChannel() |
protected IndexedJavaClassDescriptor |
getFromStoredClassDescriptors(Class<?> clazz) |
protected int |
indexOfStoredObjects(Object o) |
protected int |
indexOfStoredStrings(String s) |
protected void |
writeAMF3Array(Object array) |
protected void |
writeAMF3ByteArray(byte[] bytes) |
protected void |
writeAMF3Collection(Collection<?> c) |
protected void |
writeAMF3Date(Date date) |
protected void |
writeAMF3Integer(int i) |
protected void |
writeAMF3IntegerData(int i) |
protected void |
writeAMF3Number(double d) |
protected void |
writeAMF3Object(Object o) |
protected void |
writeAMF3String(String s) |
protected void |
writeAMF3StringData(String s) |
protected void |
writeAMF3Xml(Document doc) |
void |
writeObject(Object o) |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclose, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFprotected final Map<String,Integer> storedStrings
protected final Map<Object,Integer> storedObjects
protected final Map<String,IndexedJavaClassDescriptor> storedClassDescriptors
protected final GraniteContext context
protected final Converters converters
protected final boolean externalizeLong
protected final boolean externalizeBigInteger
protected final boolean externalizeBigDecimal
protected final boolean debug
protected final boolean debugMore
public AMF3Serializer(OutputStream out)
public void writeObject(Object o) throws IOException
writeObject in interface ObjectOutputIOExceptionprotected void writeAMF3Integer(int i) throws IOException
IOExceptionprotected void writeAMF3IntegerData(int i) throws IOException
IOExceptionprotected void writeAMF3Number(double d) throws IOException
IOExceptionprotected void writeAMF3String(String s) throws IOException
IOExceptionprotected void writeAMF3StringData(String s) throws IOException
IOExceptionprotected void writeAMF3Xml(Document doc) throws IOException
IOExceptionprotected void writeAMF3Date(Date date) throws IOException
IOExceptionprotected void writeAMF3Array(Object array) throws IOException
IOExceptionprotected void writeAMF3ByteArray(byte[] bytes) throws IOException
IOExceptionprotected void writeAMF3Collection(Collection<?> c) throws IOException
IOExceptionprotected void writeAMF3Object(Object o) throws IOException
IOExceptionprotected void addToStoredStrings(String s)
protected int indexOfStoredStrings(String s)
protected void addToStoredObjects(Object o)
protected int indexOfStoredObjects(Object o)
protected IndexedJavaClassDescriptor addToStoredClassDescriptors(Class<?> clazz)
protected IndexedJavaClassDescriptor getFromStoredClassDescriptors(Class<?> clazz)
protected Channel getChannel()