In particular, values greater than ASCII_MAX are written as
NON_ASCII_REPLACEMENT.
| 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) |
| public static final int | NON_ASCII_MIN
is 2^7 (128) |
| public static final int | NON_ASCII_REPLACEMENT
is '�' (65533), the Unicode replacement character. |
| private final Writer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| public void | write(int b)
Implements abstract java. Writes the specified byte to this output 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) | |
| 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 '�' (65533), the Unicode replacement character. see https://www.fileformat.info/info/unicode/char/fffd/index.htm | |
| writer | back to summary |
|---|---|
| private final Writer writer | |
| AsciiOutputStream | back to summary |
|---|---|
| public AsciiOutputStream(Writer writer) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |