weborb.writer
Interface IProtocolFormatter

All Known Implementing Classes:
AMFFormatter, AmfV3Formatter, WOLFFormatter

public interface IProtocolFormatter

IProtocolFormatter

Author:
Midnight Coders, LLC

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()
           
 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 s)
           
 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)
           
 

Method Detail

directWriteString

void directWriteString(java.lang.String str)
                       throws java.io.IOException
Throws:
java.io.IOException

directWriteInt

void directWriteInt(int i)
                    throws java.io.IOException
Throws:
java.io.IOException

directWriteBoolean

void directWriteBoolean(boolean b)
                        throws java.io.IOException
Throws:
java.io.IOException

directWriteShort

void directWriteShort(int s)
                      throws java.io.IOException
Throws:
java.io.IOException

beginWriteMessage

void beginWriteMessage(Message message)
                       throws java.io.IOException
Throws:
java.io.IOException

endWriteMessage

void endWriteMessage()
                     throws java.io.IOException
Throws:
java.io.IOException

writeMessageVersion

void writeMessageVersion(float version)
                         throws java.io.IOException
Throws:
java.io.IOException

beginWriteArray

void beginWriteArray(int length)
                     throws java.io.IOException
Throws:
java.io.IOException

endWriteArray

void endWriteArray()
                   throws java.io.IOException
Throws:
java.io.IOException

writeBoolean

void writeBoolean(boolean b)
                  throws java.io.IOException
Throws:
java.io.IOException

writeDate

void writeDate(long time)
               throws java.io.IOException
Throws:
java.io.IOException

beginWriteObjectMap

void beginWriteObjectMap(int size)
                         throws java.io.IOException
Throws:
java.io.IOException

endWriteObjectMap

void endWriteObjectMap()
                       throws java.io.IOException
Throws:
java.io.IOException

writeFieldName

void writeFieldName(java.lang.String s)
                    throws java.io.IOException
Throws:
java.io.IOException

beginWriteFieldValue

void beginWriteFieldValue()
                          throws java.io.IOException
Throws:
java.io.IOException

endWriteFieldValue

void endWriteFieldValue()
                        throws java.io.IOException
Throws:
java.io.IOException

writeNull

void writeNull()
               throws java.io.IOException
Throws:
java.io.IOException

writeNumber

void writeNumber(double number)
                 throws java.io.IOException
Throws:
java.io.IOException

beginWriteNamedObject

void beginWriteNamedObject(java.lang.String objectName,
                           int fieldCount)
                           throws java.io.IOException
Throws:
java.io.IOException

endWriteNamedObject

void endWriteNamedObject()
                         throws java.io.IOException
Throws:
java.io.IOException

beginWriteObject

void beginWriteObject()
                      throws java.io.IOException
Throws:
java.io.IOException

endWriteObject

void endWriteObject()
                    throws java.io.IOException
Throws:
java.io.IOException

writeReference

void writeReference(short refID)
                    throws java.io.IOException
Throws:
java.io.IOException

writeString

void writeString(java.lang.String s)
                 throws java.io.IOException
Throws:
java.io.IOException

writeXML

void writeXML(org.jdom.Document document)
              throws java.io.IOException
Throws:
java.io.IOException

getBytes

byte[] getBytes()
                throws java.io.IOException
Throws:
java.io.IOException

cleanup

void cleanup()

getWriter

ITypeWriter getWriter(java.lang.Class type)

getContentType

java.lang.String getContentType()

beginWriteBodyContent

void beginWriteBodyContent()

endWriteBodyContent

void endWriteBodyContent()

resetReferenceCache

void resetReferenceCache()

getObjectSerializer

IObjectSerializer getObjectSerializer()

getReferenceCache

ReferenceCache getReferenceCache()

writeStringReference

void writeStringReference(short refId)

writeArrayReference

void writeArrayReference(short refId)

writeObjectReference

void writeObjectReference(short refId)


Discuss WebORB

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