org.lwes.serializer
Class DeserializerState

java.lang.Object
  extended by org.lwes.serializer.DeserializerState

public class DeserializerState
extends java.lang.Object

An internal class used by the Deserializer to keep track of its state

Author:
Anthony Molinaro

Constructor Summary
DeserializerState()
          Constructor
 
Method Summary
 int currentIndex()
          return the current index
 int incr(int amount)
          Increments the index into a byte array, by a specified amount and returns the new index value.
 void reset()
          reset the object to a clean state
 java.lang.String toString()
          Returns a String representation of this object Overrides method in Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeserializerState

public DeserializerState()
Constructor

Method Detail

incr

public int incr(int amount)
Increments the index into a byte array, by a specified amount and returns the new index value.

Parameters:
amount - the amount to increment by
Returns:
the new index value as an int

currentIndex

public int currentIndex()
return the current index

Returns:
the current index as an int

reset

public void reset()
reset the object to a clean state


toString

public java.lang.String toString()
Returns a String representation of this object Overrides method in Object

Overrides:
toString in class java.lang.Object
Returns:
a String return of this object.