"

2013 FRC Java API

"

com.sun.squawk
Class GeneralDecoder

java.lang.Object
  extended by com.sun.squawk.GeneralDecoder
Direct Known Subclasses:
ByteBufferDecoder, VMBufferDecoder

public abstract class GeneralDecoder
extends Object

A byte buffer decoder can be used to decode a byte array of values encoded with a byte buffer encoder.


Constructor Summary
GeneralDecoder()
           
 
Method Summary
 char readChar()
          Decodes a UTF8 encoded character from the current position.
 int readUnsignedInt()
          Decodes an unsigned integer from the current decoding position.
 int readUnsignedShort()
          Decodes an encoded short from the current position.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralDecoder

public GeneralDecoder()
Method Detail

readUnsignedInt

public final int readUnsignedInt()
Decodes an unsigned integer from the current decoding position.

Returns:
the decoded value
See Also:
ByteBufferEncoder.addUnsignedInt(int)

readUnsignedShort

public final int readUnsignedShort()
Decodes an encoded short from the current position.

Returns:
the decoded value
See Also:
ByteBufferEncoder.addUnsignedShort(int)

readChar

public final char readChar()
Decodes a UTF8 encoded character from the current position.

Returns:
the decoded character

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"