flex.messaging.io.amf
Class Amf3Input

java.lang.Object
  extended by flex.messaging.io.amf.AbstractAmfInput
      extended by flex.messaging.io.amf.Amf3Input
All Implemented Interfaces:
ActionMessageInput, Amf3Types, DataInput, ObjectInput

public class Amf3Input
extends AbstractAmfInput
implements Amf3Types

Reads AMF 3 formatted data stream.

This class intends to matches the Flash Player 8 C++ code in avmglue/DataIO.cpp


Field Summary
 
Fields inherited from interface flex.messaging.io.amf.Amf3Types
EMPTY_STRING, INT28_MAX_VALUE, INT28_MIN_VALUE, kArrayType, kAvmPlusXmlType, kByteArrayType, kDateType, kDoubleType, kFalseType, kIntegerType, kNullType, kObjectType, kStringType, kTrueType, kUndefinedType, kXMLType
 
Constructor Summary
Amf3Input(SerializationContext context)
           
 
Method Summary
 Object readObject()
          Public entry point to read a top level AMF Object, such as a header value or a message body.
 void reset()
          Reset should be called before reading a top level object, such as a new header or a new body.
 void restoreObjectTable(Object table)
           
 void restoreStringTable(Object table)
           
 void restoreTraitsTable(Object table)
           
 Object saveObjectTable()
           
 Object saveStringTable()
           
 Object saveTraitsTable()
           
 void setDebugTrace(AmfTrace trace)
          Turns on "trace" debugging for AMF responses.
 
Methods inherited from class flex.messaging.io.amf.AbstractAmfInput
available, close, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, setInputStream, skip, skipBytes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Amf3Input

public Amf3Input(SerializationContext context)
Method Detail

reset

public void reset()
Reset should be called before reading a top level object, such as a new header or a new body.


saveObjectTable

public Object saveObjectTable()

restoreObjectTable

public void restoreObjectTable(Object table)

saveTraitsTable

public Object saveTraitsTable()

restoreTraitsTable

public void restoreTraitsTable(Object table)

saveStringTable

public Object saveStringTable()

restoreStringTable

public void restoreStringTable(Object table)

readObject

public Object readObject()
                  throws ClassNotFoundException,
                         IOException
Public entry point to read a top level AMF Object, such as a header value or a message body.

Specified by:
readObject in interface ActionMessageInput
Specified by:
readObject in interface ObjectInput
Throws:
ClassNotFoundException
IOException

setDebugTrace

public void setDebugTrace(AmfTrace trace)
Turns on "trace" debugging for AMF responses.



Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/amf/Amf3Input.html