Top Description Fields Constructors Methods
sun.jvm.hotspot.debugger

public Class InputLexer

extends Object
Class Inheritance
Imports
java.io.*

InputLexer is the lexer through which the current set of debuggers see the debug server. It provides the ability to read all of the types the debuggers are interested in. All read operations are blocking.

Field Summary

Modifier and TypeField and Description
private byte
private BufferedInputStream
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private void
private boolean
isHexDigit(char c)

public long
parseAddress()

Parses an address in the form 0x12345678 in US-ASCII encoding on the input stream

public boolean
parseBoolean()

Parses a boolean (really either a 0 or 1 integer in US-ASCII encoding) on the input stream

public int
parseInt()

Parses an int in US-ASCII encoding on the input stream

public long
parseLong()

Parses a long in US-ASCII encoding on the input stream

private void
pushBack(byte b)

public byte
readByte()

Reads binary data; one byte

private byte
public void
readBytes(byte[] buf, int off, int len)

Reads a block of binary data in BLOCKING fashion

public String
readByteString(int len)

Reads binary data; a US-ASCII string of the specified length

public char
readChar()

Reads binary data; one 16-bit character in big-endian format

public String
readCharString(int len)

Reads binary data; a Unicode string of the specified length

public long
readUnsignedInt()

Reads binary data; one 32-bit unsigned int in big-endian format.

public void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

backBufback to summary
private byte backBuf
inback to summary
private BufferedInputStream in
pushedBackback to summary
private boolean pushedBack

Constructor Detail

InputLexerback to summary
public InputLexer(BufferedInputStream in) throws IOException

Method Detail

closeback to summary
public void close() throws IOException
errorback to summary
private void error() throws IOException
isHexDigitback to summary
private boolean isHexDigit(char c)
parseAddressback to summary
public long parseAddress() throws IOException

Parses an address in the form 0x12345678 in US-ASCII encoding on the input stream

parseBooleanback to summary
public boolean parseBoolean() throws IOException

Parses a boolean (really either a 0 or 1 integer in US-ASCII encoding) on the input stream

parseIntback to summary
public int parseInt() throws IOException

Parses an int in US-ASCII encoding on the input stream

parseLongback to summary
public long parseLong() throws IOException

Parses a long in US-ASCII encoding on the input stream

pushBackback to summary
private void pushBack(byte b)
readByteback to summary
public byte readByte() throws IOException

Reads binary data; one byte

readByteInternalback to summary
private byte readByteInternal() throws IOException
readBytesback to summary
public void readBytes(byte[] buf, int off, int len) throws IOException

Reads a block of binary data in BLOCKING fashion

readByteStringback to summary
public String readByteString(int len) throws IOException

Reads binary data; a US-ASCII string of the specified length

readCharback to summary
public char readChar() throws IOException

Reads binary data; one 16-bit character in big-endian format

readCharStringback to summary
public String readCharString(int len) throws IOException

Reads binary data; a Unicode string of the specified length

readUnsignedIntback to summary
public long readUnsignedInt() throws IOException

Reads binary data; one 32-bit unsigned int in big-endian format. Returned as a long.

skipByteback to summary
public void skipByte() throws IOException
skipWhitespaceback to summary
private void skipWhitespace() throws IOException