| Modifier and Type | Field and Description |
|---|---|
| public static final int | ASCII_BITS
is 7; |
| public static final int | ASCII_MASK
is 0b01111111 |
| public static final int | ASCII_MAX
is 2^7 - 1 (127) |
| private boolean | |
| private int | |
| public static final int | NON_ASCII_MIN
is 2^7 (128) |
| public static final int | NON_ASCII_REPLACEMENT
is '?' |
| private final Reader |
| Access | Constructor and Description |
|---|---|
| public | AsciiInputStream(final Reader
from which to read reader)Constructs a new instance for the given reader. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| public synchronized int | Returns: the next byte of data, or-1 if the end of the
stream is reached.Implements abstract java. Reads the next byte of data from the input stream. |
| ASCII_BITS | back to summary |
|---|---|
| public static final int ASCII_BITS is 7; | |
| ASCII_MASK | back to summary |
|---|---|
| public static final int ASCII_MASK is 0b01111111 | |
| ASCII_MAX | back to summary |
|---|---|
| public static final int ASCII_MAX is 2^7 - 1 (127) | |
| hasNextChar | back to summary |
|---|---|
| private boolean hasNextChar | |
| nextChar | back to summary |
|---|---|
| private int nextChar | |
| NON_ASCII_MIN | back to summary |
|---|---|
| public static final int NON_ASCII_MIN is 2^7 (128) | |
| NON_ASCII_REPLACEMENT | back to summary |
|---|---|
| public static final int NON_ASCII_REPLACEMENT is '?' | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| AsciiInputStream | back to summary |
|---|---|
| public AsciiInputStream(final Reader reader) Constructs a new instance for the given reader.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| read | back to summary |
|---|---|
| public synchronized int read() throws IOException Implements abstract java. Reads the next byte of data from the input stream. The value byte is
returned as an
UTF-16 characters above
Surrogate pairs are correctly counted as a single character and produce a
single
| |