flex.messaging.io.amf
Class AbstractAmfInput

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

public abstract class AbstractAmfInput
extends Object
implements ActionMessageInput

A deserializer of AMF protocol data.

See Also:
ActionMessageOutput

Constructor Summary
AbstractAmfInput(SerializationContext context)
          Construct a deserializer without connecting it to an input stream.
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(byte[] bytes)
           
 int read(byte[] bytes, int offset, int length)
           
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 void readFully(byte[] bytes)
           
 void readFully(byte[] bytes, int offset, int length)
           
 int readInt()
           
 String readLine()
          Deprecated.  
 long readLong()
           
 short readShort()
           
 int readUnsignedByte()
           
 int readUnsignedShort()
           
 String readUTF()
           
 void reset()
          Clear all object reference information so that the instance can be used to deserialize another data structure.
 void setDebugTrace(AmfTrace trace)
          Turns on "trace" debugging for AMF responses.
 void setInputStream(InputStream in)
           
 long skip(long n)
           
 int skipBytes(int n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface flex.messaging.io.amf.ActionMessageInput
readObject
 

Constructor Detail

AbstractAmfInput

public AbstractAmfInput(SerializationContext context)
Construct a deserializer without connecting it to an input stream.

Method Detail

setInputStream

public void setInputStream(InputStream in)

available

public int available()
              throws IOException
Specified by:
available in interface ObjectInput
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface ObjectInput
Throws:
IOException

read

public int read()
         throws IOException
Specified by:
read in interface ObjectInput
Throws:
IOException

read

public int read(byte[] bytes)
         throws IOException
Specified by:
read in interface ObjectInput
Throws:
IOException

read

public int read(byte[] bytes,
                int offset,
                int length)
         throws IOException
Specified by:
read in interface ObjectInput
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Specified by:
skip in interface ObjectInput
Throws:
IOException

skipBytes

public int skipBytes(int n)
              throws IOException
Specified by:
skipBytes in interface DataInput
Throws:
IOException

readBoolean

public boolean readBoolean()
                    throws IOException
Specified by:
readBoolean in interface DataInput
Throws:
IOException

readByte

public byte readByte()
              throws IOException
Specified by:
readByte in interface DataInput
Throws:
IOException

readChar

public char readChar()
              throws IOException
Specified by:
readChar in interface DataInput
Throws:
IOException

readDouble

public double readDouble()
                  throws IOException
Specified by:
readDouble in interface DataInput
Throws:
IOException

readFloat

public float readFloat()
                throws IOException
Specified by:
readFloat in interface DataInput
Throws:
IOException

readFully

public void readFully(byte[] bytes)
               throws IOException
Specified by:
readFully in interface DataInput
Throws:
IOException

readFully

public void readFully(byte[] bytes,
                      int offset,
                      int length)
               throws IOException
Specified by:
readFully in interface DataInput
Throws:
IOException

readInt

public int readInt()
            throws IOException
Specified by:
readInt in interface DataInput
Throws:
IOException

readLine

public String readLine()
                throws IOException
Deprecated. 

Specified by:
readLine in interface DataInput
Throws:
IOException

readLong

public long readLong()
              throws IOException
Specified by:
readLong in interface DataInput
Throws:
IOException

readShort

public short readShort()
                throws IOException
Specified by:
readShort in interface DataInput
Throws:
IOException

readUnsignedByte

public int readUnsignedByte()
                     throws IOException
Specified by:
readUnsignedByte in interface DataInput
Throws:
IOException

readUnsignedShort

public int readUnsignedShort()
                      throws IOException
Specified by:
readUnsignedShort in interface DataInput
Throws:
IOException

readUTF

public String readUTF()
               throws IOException
Specified by:
readUTF in interface DataInput
Throws:
IOException

setDebugTrace

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


reset

public void reset()
Clear all object reference information so that the instance can be used to deserialize another data structure. Reset should be called before reading a top level object, such as a new header or a new body.



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/AbstractAmfInput.html