FileDocCategorySizeDatePackage
Parser.javaAPI DocphoneME MR2 API (J2ME)2011Wed May 02 18:00:40 BST 2007com.sun.satsa.aclapplet

Parser

public class Parser extends Object
Utility class for byte buffer parsing.

Fields Summary
static byte[]
data
Data buffer.
static short
offset
Current offset.
Constructors Summary
Methods Summary
static bytegetByte()
Returns the next byte from the buffer.

return
byte value

        return data[offset++];
    
static shortgetShort()
Returns the next short value from the buffer.

return
short value

        short s = Util.getShort(data, offset);
        offset += 2;
        return s;
    
static voidinit(byte[] buff)
Initialises the parser.

param
buff data buffer

        data = buff;
        offset = 0;
    
static voidskip(short len)
Changes the current offset to skip sequence of bytes.

param
len the number of bytes to skip

        offset += len;