flex.messaging.io.amf
Class AbstractAmfOutput

java.lang.Object
  extended by flex.messaging.io.amf.AbstractAmfOutput
All Implemented Interfaces:
ActionMessageOutput, DataOutput, ObjectOutput
Direct Known Subclasses:
Amf0Output, Amf3Output, AmfxOutput

public abstract class AbstractAmfOutput
extends Object
implements ActionMessageOutput


Constructor Summary
AbstractAmfOutput(SerializationContext context)
          Construct a serializer without connecting it to an output stream.
 
Method Summary
 void close()
           
 void flush()
           
 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 setOutputStream(OutputStream out)
          Sets the output stream that the serializer should use.
 void write(byte[] bytes)
           
 void write(byte[] bytes, int offset, int length)
           
 void write(int b)
           
 void writeBoolean(boolean v)
           
 void writeByte(int v)
           
 void writeBytes(String s)
           
 void writeChar(int v)
           
 void writeChars(String s)
           
 void writeDouble(double v)
           
 void writeFloat(float v)
           
 void writeInt(int v)
           
 void writeLong(long v)
           
 void writeShort(int v)
           
 void writeUTF(String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface flex.messaging.io.amf.ActionMessageOutput
writeObject
 

Constructor Detail

AbstractAmfOutput

public AbstractAmfOutput(SerializationContext context)
Construct a serializer without connecting it to an output stream.

Method Detail

setOutputStream

public void setOutputStream(OutputStream out)
Sets the output stream that the serializer should use.

Parameters:
out - DataOutputStream to use

close

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

flush

public void flush()
           throws IOException
Specified by:
flush in interface ObjectOutput
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in interface DataOutput
Specified by:
write in interface ObjectOutput
Throws:
IOException

write

public void write(byte[] bytes)
           throws IOException
Specified by:
write in interface DataOutput
Specified by:
write in interface ObjectOutput
Throws:
IOException

write

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

writeBoolean

public void writeBoolean(boolean v)
                  throws IOException
Specified by:
writeBoolean in interface DataOutput
Throws:
IOException

writeByte

public void writeByte(int v)
               throws IOException
Specified by:
writeByte in interface DataOutput
Throws:
IOException

writeBytes

public void writeBytes(String s)
                throws IOException
Specified by:
writeBytes in interface DataOutput
Throws:
IOException

writeChar

public void writeChar(int v)
               throws IOException
Specified by:
writeChar in interface DataOutput
Throws:
IOException

writeChars

public void writeChars(String s)
                throws IOException
Specified by:
writeChars in interface DataOutput
Throws:
IOException

writeDouble

public void writeDouble(double v)
                 throws IOException
Specified by:
writeDouble in interface DataOutput
Throws:
IOException

writeFloat

public void writeFloat(float v)
                throws IOException
Specified by:
writeFloat in interface DataOutput
Throws:
IOException

writeInt

public void writeInt(int v)
              throws IOException
Specified by:
writeInt in interface DataOutput
Throws:
IOException

writeLong

public void writeLong(long v)
               throws IOException
Specified by:
writeLong in interface DataOutput
Throws:
IOException

writeShort

public void writeShort(int v)
                throws IOException
Specified by:
writeShort in interface DataOutput
Throws:
IOException

writeUTF

public void writeUTF(String s)
              throws IOException
Specified by:
writeUTF in interface DataOutput
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/AbstractAmfOutput.html