se.sics.isl.transport
Class BinaryTransportReader

java.lang.Object
  extended by se.sics.isl.transport.TransportReader
      extended by se.sics.isl.transport.BinaryTransportReader
All Implemented Interfaces:
BinaryTransport

public class BinaryTransportReader
extends TransportReader
implements BinaryTransport


Field Summary
 
Fields inherited from interface se.sics.isl.transport.BinaryTransport
ALIAS, CONSTANT_STRING, DOUBLE, END_NODE, FLOAT, INT, INT_ARR, LONG, NODE, START_NODE, STRING, TABLE
 
Constructor Summary
BinaryTransportReader()
           
 
Method Summary
 void clear()
           
 boolean enterNode()
           
 boolean exitNode()
           
protected  java.lang.String getAttribute(java.lang.String name, java.lang.String defaultValue, boolean isRequired)
           
protected  int[] getAttributeAsIntArray(java.lang.String name, boolean isRequired)
           
 int getAttributeCount()
           
 java.lang.String getAttributeName(int index)
           
 java.lang.String getNodeName()
           
protected  int getPosition()
           
 boolean hasMoreNodes()
           
 boolean isNode()
           
 boolean isNode(java.lang.String name)
           
 boolean nextNode(boolean isRequired)
           
 boolean nextNode(java.lang.String name, boolean isRequired)
           
 void printMessage()
           
 void printMessage(java.io.PrintStream out)
           
 void reset()
           
 void setMessage(byte[] messageData)
           
 void setMessage(byte[] messageData, int offset, int length)
           
 
Methods inherited from class se.sics.isl.transport.TransportReader
createTransportable, getAttribute, getAttribute, getAttribute, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInt, getAttributeAsInt, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsLong, getAttributeAsLong, getTransportableClass, readTransportable, readTransportable, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryTransportReader

public BinaryTransportReader()
Method Detail

setMessage

public void setMessage(byte[] messageData)

setMessage

public void setMessage(byte[] messageData,
                       int offset,
                       int length)

clear

public void clear()

reset

public void reset()
Specified by:
reset in class TransportReader

getPosition

protected int getPosition()
Specified by:
getPosition in class TransportReader

hasMoreNodes

public boolean hasMoreNodes()
                     throws java.text.ParseException
Specified by:
hasMoreNodes in class TransportReader
Throws:
java.text.ParseException

nextNode

public boolean nextNode(boolean isRequired)
                 throws java.text.ParseException
Specified by:
nextNode in class TransportReader
Throws:
java.text.ParseException

nextNode

public boolean nextNode(java.lang.String name,
                        boolean isRequired)
                 throws java.text.ParseException
Specified by:
nextNode in class TransportReader
Throws:
java.text.ParseException

getNodeName

public java.lang.String getNodeName()
                             throws java.text.ParseException
Specified by:
getNodeName in class TransportReader
Throws:
java.text.ParseException

isNode

public boolean isNode()
               throws java.text.ParseException
Specified by:
isNode in class TransportReader
Throws:
java.text.ParseException

isNode

public boolean isNode(java.lang.String name)
               throws java.text.ParseException
Specified by:
isNode in class TransportReader
Throws:
java.text.ParseException

enterNode

public boolean enterNode()
                  throws java.text.ParseException
Specified by:
enterNode in class TransportReader
Throws:
java.text.ParseException

exitNode

public boolean exitNode()
                 throws java.text.ParseException
Specified by:
exitNode in class TransportReader
Throws:
java.text.ParseException

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in class TransportReader

getAttributeName

public java.lang.String getAttributeName(int index)
                                  throws java.text.ParseException
Specified by:
getAttributeName in class TransportReader
Throws:
java.text.ParseException

getAttribute

protected java.lang.String getAttribute(java.lang.String name,
                                        java.lang.String defaultValue,
                                        boolean isRequired)
                                 throws java.text.ParseException
Specified by:
getAttribute in class TransportReader
Throws:
java.text.ParseException

getAttributeAsIntArray

protected int[] getAttributeAsIntArray(java.lang.String name,
                                       boolean isRequired)
                                throws java.text.ParseException
Overrides:
getAttributeAsIntArray in class TransportReader
Throws:
java.text.ParseException

printMessage

public void printMessage()
                  throws java.text.ParseException
Throws:
java.text.ParseException

printMessage

public void printMessage(java.io.PrintStream out)
                  throws java.text.ParseException
Throws:
java.text.ParseException


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.