Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.squawk
Class GeneralDecoder

    java.lang.Object
      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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

"
For updated information see the Java FRC site
"