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 AMFSpecialValueFactory |
specialValueFactory |
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_DICTIONARY, 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) |
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 AMFSpecialValueFactory specialValueFactory
protected final boolean debug
protected final boolean debugMore
public AMF3Serializer(OutputStream out)
public void writeObject(Object o) throws IOException
writeObject in interface ObjectOutputIOExceptionprotected void writeAMF3SpecialValue(AMFSpecialValue<?> value) throws IOException
IOExceptionprotected void writeAMF3VectorObject(AMFVectorObjectValue value) throws IOException
IOExceptionprotected void writeAMF3VectorInt(AMFVectorIntValue value) throws IOException
IOExceptionprotected void writeAMF3VectorNumber(AMFVectorNumberValue value) throws IOException
IOExceptionprotected void writeAMF3VectorUint(AMFVectorUintValue value) throws IOException
IOExceptionprotected void writeAMF3Dictionary(AMFDictionaryValue value) throws IOException
IOExceptionprotected int getArrayOrCollectionLength(Object o)
protected 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()