weborb.writer.amf
Class AMFFormatter

java.lang.Object
  extended by weborb.writer.amf.AMFFormatter
All Implemented Interfaces:
IORBConstants, IProtocolFormatter

public class AMFFormatter
extends java.lang.Object
implements IProtocolFormatter, IORBConstants

AMFFormatter

Author:
Midnight Coders, LLC

Field Summary
 
Fields inherited from interface weborb.IORBConstants
ARRAY_DATATYPE, BOOLEAN_DATATYPE, DATE_DATATYPE, ENDOFOBJECT_DATATYPE, LONGUTFSTRING_DATATYPE, NAMEDOBJECT_DATATYPE, NULL_DATATYPE, NUMBER_DATATYPE, OBJECT_DATATYPE, OBJECTARRAY_DATATYPE, ONRESULT, ONSTATUS, PARSEDXML_DATATYPE, POINTER_DATATYPE, RECORDSET_DATATYPE, REMOTEREFERENCE_DATATYPE, TOTAL_TYPES, UNKNOWN_DATATYPE, UTFSTRING_DATATYPE
 
Constructor Summary
AMFFormatter()
           
 
Method Summary
 void beginWriteArray(int length)
           
 void beginWriteBodyContent()
           
 void beginWriteFieldValue()
           
 void beginWriteMessage(Message message)
           
 void beginWriteNamedObject(java.lang.String objectName, int fieldCount)
           
 void beginWriteObject()
           
 void beginWriteObjectMap(int size)
           
 void cleanup()
           
 void directWriteBoolean(boolean b)
           
 void directWriteInt(int i)
           
 void directWriteShort(int s)
           
 void directWriteString(java.lang.String str)
           
 void endWriteArray()
           
 void endWriteBodyContent()
           
 void endWriteFieldValue()
           
 void endWriteMessage()
           
 void endWriteNamedObject()
           
 void endWriteObject()
           
 void endWriteObjectMap()
           
 byte[] getBytes()
           
 java.lang.String getContentType()
           
 IObjectSerializer getObjectSerializer()
           
 ReferenceCache getReferenceCache()
           
 byte[] getStringBytes(java.lang.String str)
           
 ITypeWriter getWriter(java.lang.Class type)
           
 void resetReferenceCache()
           
 void writeArrayReference(short refId)
           
 void writeBoolean(boolean b)
           
 void writeDate(long time)
           
 void writeFieldName(java.lang.String fieldName)
           
 void writeMessageVersion(float version)
           
 void writeNull()
           
 void writeNumber(double number)
           
 void writeObjectReference(short refId)
           
 void writeReference(short refID)
           
 void writeString(java.lang.String s)
           
 void writeStringReference(short refId)
           
 void writeXML(org.jdom.Document document)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AMFFormatter

public AMFFormatter()
Method Detail

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface IProtocolFormatter

getWriter

public ITypeWriter getWriter(java.lang.Class type)
Specified by:
getWriter in interface IProtocolFormatter

cleanup

public void cleanup()
Specified by:
cleanup in interface IProtocolFormatter

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface IProtocolFormatter

writeMessageVersion

public void writeMessageVersion(float version)
                         throws java.io.IOException
Specified by:
writeMessageVersion in interface IProtocolFormatter
Throws:
java.io.IOException

directWriteString

public void directWriteString(java.lang.String str)
                       throws java.io.IOException
Specified by:
directWriteString in interface IProtocolFormatter
Throws:
java.io.IOException

directWriteInt

public void directWriteInt(int i)
                    throws java.io.IOException
Specified by:
directWriteInt in interface IProtocolFormatter
Throws:
java.io.IOException

directWriteBoolean

public void directWriteBoolean(boolean b)
                        throws java.io.IOException
Specified by:
directWriteBoolean in interface IProtocolFormatter
Throws:
java.io.IOException

directWriteShort

public void directWriteShort(int s)
                      throws java.io.IOException
Specified by:
directWriteShort in interface IProtocolFormatter
Throws:
java.io.IOException

beginWriteMessage

public void beginWriteMessage(Message message)
                       throws java.io.IOException
Specified by:
beginWriteMessage in interface IProtocolFormatter
Throws:
java.io.IOException

endWriteMessage

public void endWriteMessage()
                     throws java.io.IOException
Specified by:
endWriteMessage in interface IProtocolFormatter
Throws:
java.io.IOException

beginWriteArray

public void beginWriteArray(int length)
                     throws java.io.IOException
Specified by:
beginWriteArray in interface IProtocolFormatter
Throws:
java.io.IOException

endWriteArray

public void endWriteArray()
                   throws java.io.IOException
Specified by:
endWriteArray in interface IProtocolFormatter
Throws:
java.io.IOException

writeBoolean

public void writeBoolean(boolean b)
                  throws java.io.IOException
Specified by:
writeBoolean in interface IProtocolFormatter
Throws:
java.io.IOException

writeDate

public void writeDate(long time)
               throws java.io.IOException
Specified by:
writeDate in interface IProtocolFormatter
Throws:
java.io.IOException

beginWriteObjectMap

public void beginWriteObjectMap(int size)
                         throws java.io.IOException
Specified by:
beginWriteObjectMap in interface IProtocolFormatter
Throws:
java.io.IOException

endWriteObjectMap

public void endWriteObjectMap()
                       throws java.io.IOException
Specified by:
endWriteObjectMap in interface IProtocolFormatter
Throws:
java.io.IOException

writeFieldName

public void writeFieldName(java.lang.String fieldName)
                    throws java.io.IOException
Specified by:
writeFieldName in interface IProtocolFormatter
Throws:
java.io.IOException

beginWriteFieldValue

public void beginWriteFieldValue()
                          throws java.io.IOException
Specified by:
beginWriteFieldValue in interface IProtocolFormatter
Throws:
java.io.IOException

endWriteFieldValue

public void endWriteFieldValue()
                        throws java.io.IOException
Specified by:
endWriteFieldValue in interface IProtocolFormatter
Throws:
java.io.IOException

writeNull

public void writeNull()
               throws java.io.IOException
Specified by:
writeNull in interface IProtocolFormatter
Throws:
java.io.IOException

writeNumber

public void writeNumber(double number)
                 throws java.io.IOException
Specified by:
writeNumber in interface IProtocolFormatter
Throws:
java.io.IOException

beginWriteNamedObject

public void beginWriteNamedObject(java.lang.String objectName,
                                  int fieldCount)
                           throws java.io.IOException
Specified by:
beginWriteNamedObject in interface IProtocolFormatter
Throws:
java.io.IOException

endWriteNamedObject

public void endWriteNamedObject()
                         throws java.io.IOException
Specified by:
endWriteNamedObject in interface IProtocolFormatter
Throws:
java.io.IOException

beginWriteObject

public void beginWriteObject()
                      throws java.io.IOException
Specified by:
beginWriteObject in interface IProtocolFormatter
Throws:
java.io.IOException

endWriteObject

public void endWriteObject()
                    throws java.io.IOException
Specified by:
endWriteObject in interface IProtocolFormatter
Throws:
java.io.IOException

writeReference

public void writeReference(short refID)
                    throws java.io.IOException
Specified by:
writeReference in interface IProtocolFormatter
Throws:
java.io.IOException

writeString

public void writeString(java.lang.String s)
                 throws java.io.IOException
Specified by:
writeString in interface IProtocolFormatter
Throws:
java.io.IOException

writeXML

public void writeXML(org.jdom.Document document)
              throws java.io.IOException
Specified by:
writeXML in interface IProtocolFormatter
Throws:
java.io.IOException

getStringBytes

public byte[] getStringBytes(java.lang.String str)
                      throws java.io.IOException
Throws:
java.io.IOException

beginWriteBodyContent

public void beginWriteBodyContent()
Specified by:
beginWriteBodyContent in interface IProtocolFormatter

endWriteBodyContent

public void endWriteBodyContent()
Specified by:
endWriteBodyContent in interface IProtocolFormatter

resetReferenceCache

public void resetReferenceCache()
Specified by:
resetReferenceCache in interface IProtocolFormatter

getObjectSerializer

public IObjectSerializer getObjectSerializer()
Specified by:
getObjectSerializer in interface IProtocolFormatter

getReferenceCache

public ReferenceCache getReferenceCache()
Specified by:
getReferenceCache in interface IProtocolFormatter

writeArrayReference

public void writeArrayReference(short refId)
Specified by:
writeArrayReference in interface IProtocolFormatter

writeObjectReference

public void writeObjectReference(short refId)
Specified by:
writeObjectReference in interface IProtocolFormatter

writeStringReference

public void writeStringReference(short refId)
Specified by:
writeStringReference in interface IProtocolFormatter


Discuss WebORB

Copyright 2003-2008 Midnight Coders, Inc. All Rights Reserved.