1 package org
.lwes
.serializer
;
4 * An internal class used by the Deserializer to keep track of its state
6 * @author Anthony Molinaro
8 public class DeserializerState
15 public DeserializerState()
21 * Increments the index into a byte array, by a specified amount
22 * and returns the new index value.
24 * @param amount the amount to increment by
25 * @return the new index value as an int
27 public int incr(int amount
)
34 * return the current index
36 * @return the current index as an int
38 public int currentIndex()
44 * reset the object to a clean state
53 * Returns a String representation of this object
54 * Overrides method in <tt>Object</tt>
56 * @return a String return of this object.
58 public String
toString()
60 return "DeserializeState = "+index
;