|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openamf.io.AMFSerializer
AMF Serializer
Field Summary | |
protected java.io.DataOutputStream |
outputStream
The output stream |
Constructor Summary | |
AMFSerializer(java.io.DataOutputStream outputStream)
Constructor |
Method Summary | |
protected java.lang.Object[] |
convertPrimitiveArrayToObjectArray(java.lang.Object array)
|
protected boolean |
isPrimitiveArray(java.lang.Object obj)
|
void |
serializeMessage(AMFMessage message)
Writes message |
protected void |
write(java.util.Collection collection)
Writes collection |
protected void |
write(org.w3c.dom.Document document)
Writes XML Document |
protected void |
write(java.util.Iterator iterator)
Writes Iterator - convert to List and call writeCollection |
protected void |
writeArray(java.lang.Object[] array)
Writes Array Object - call writeData foreach element |
protected void |
writeBody(AMFBody body)
Writes message body |
protected void |
writeData(java.lang.Object value)
Writes Data |
protected void |
writeHeader(AMFHeader header)
Writes message header |
protected void |
writeMap(java.util.Map map)
Writes Object Map |
protected void |
writeObject(java.lang.Object object)
Writes Object |
protected void |
writePrimitiveArray(java.lang.Object array)
|
protected int |
writeString(java.lang.String str)
Most of this code was cribbed from Java's DataOutputStream.writeUTF method which only supports Strings <= 65535 UTF-encoded characters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.DataOutputStream outputStream
Constructor Detail |
public AMFSerializer(java.io.DataOutputStream outputStream)
outputStream
- Method Detail |
public void serializeMessage(AMFMessage message) throws java.io.IOException
message
-
java.io.IOException
protected void writeHeader(AMFHeader header) throws java.io.IOException
header
- AMF message header
java.io.IOException
protected void writeBody(AMFBody body) throws java.io.IOException
body
- AMF message body
java.io.IOException
protected void writeData(java.lang.Object value) throws java.io.IOException
value
-
java.io.IOException
protected void writeObject(java.lang.Object object) throws java.io.IOException
object
-
java.io.IOException
protected void writeArray(java.lang.Object[] array) throws java.io.IOException
writeData
foreach element
array
-
java.io.IOException
protected void writePrimitiveArray(java.lang.Object array) throws java.io.IOException
java.io.IOException
protected java.lang.Object[] convertPrimitiveArrayToObjectArray(java.lang.Object array) throws java.io.IOException
java.io.IOException
protected void write(java.util.Iterator iterator) throws java.io.IOException
writeCollection
iterator
- Iterator
java.io.IOException
protected void write(java.util.Collection collection) throws java.io.IOException
collection
- Collection
java.io.IOException
protected void writeMap(java.util.Map map) throws java.io.IOException
map
-
java.io.IOException
protected void write(org.w3c.dom.Document document) throws java.io.IOException
document
-
java.io.IOException
protected int writeString(java.lang.String str) throws java.io.IOException
java.io.IOException
protected boolean isPrimitiveArray(java.lang.Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |