public class InputLexer
extends java.lang.Object
Constructor and Description |
---|
InputLexer(java.io.BufferedInputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
parseAddress()
Parses an address in the form 0x12345678 in US-ASCII encoding on
the input stream
|
boolean |
parseBoolean()
Parses a boolean (really either a 0 or 1 integer in US-ASCII
encoding) on the input stream
|
int |
parseInt()
Parses an int in US-ASCII encoding on the input stream
|
long |
parseLong()
Parses a long in US-ASCII encoding on the input stream
|
byte |
readByte()
Reads binary data; one byte
|
void |
readBytes(byte[] buf,
int off,
int len)
Reads a block of binary data in BLOCKING fashion
|
java.lang.String |
readByteString(int len)
Reads binary data; a US-ASCII string of the specified length
|
char |
readChar()
Reads binary data; one 16-bit character in big-endian format
|
java.lang.String |
readCharString(int len)
Reads binary data; a Unicode string of the specified length
|
long |
readUnsignedInt()
Reads binary data; one 32-bit unsigned int in big-endian format.
|
void |
skipByte() |
public InputLexer(java.io.BufferedInputStream in) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public boolean parseBoolean() throws java.io.IOException
java.io.IOException
public int parseInt() throws java.io.IOException
java.io.IOException
public long parseLong() throws java.io.IOException
java.io.IOException
public long parseAddress() throws java.io.IOException
java.io.IOException
public void skipByte() throws java.io.IOException
java.io.IOException
public byte readByte() throws java.io.IOException
java.io.IOException
public void readBytes(byte[] buf, int off, int len) throws java.io.IOException
java.io.IOException
public char readChar() throws java.io.IOException
java.io.IOException
public long readUnsignedInt() throws java.io.IOException
java.io.IOException
public java.lang.String readByteString(int len) throws java.io.IOException
java.io.IOException
public java.lang.String readCharString(int len) throws java.io.IOException
java.io.IOException
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.