| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private boolean | |
| private boolean | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| public | QPEncoderStream(OutputStream
the output stream out, int the number of bytes per line. The encoder
inserts a CRLF sequence after this many number
of bytes. bytesPerLine)Create a QP encoder that encodes the specified input stream |
| public | QPEncoderStream(OutputStream
the output stream out)Create a QP encoder that encodes the specified input stream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | flush()
Overrides java. Implements java. |
| protected void | |
| private void | |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. len bytes from the specified
byte array starting at offset off to
this output stream.
|
| public void | write(byte[]
the data to be written. b)Overrides java. b.length bytes to this output stream.
|
| public void | write(int
the c)byte.Overrides java. byte to this output stream.
|
| bytesPerLine | back to summary |
|---|---|
| private int bytesPerLine | |
| count | back to summary |
|---|---|
| private int count | |
| gotCR | back to summary |
|---|---|
| private boolean gotCR | |
| gotSpace | back to summary |
|---|---|
| private boolean gotSpace | |
| hex | back to summary |
|---|---|
| private static final char[] hex | |
| QPEncoderStream | back to summary |
|---|---|
| public QPEncoderStream(OutputStream out, int bytesPerLine) Create a QP encoder that encodes the specified input stream
| |
| QPEncoderStream | back to summary |
|---|---|
| public QPEncoderStream(OutputStream out) Create a QP encoder that encodes the specified input stream. Inserts the CRLF sequence after outputting 76 bytes.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Forces any buffered output bytes to be encoded out to the stream and closes this output stream.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be encoded out to the stream.
| |
| output | back to summary |
|---|---|
| protected void output(int c, boolean encode) throws IOException | |
| outputCRLF | back to summary |
|---|---|
| private void outputCRLF() throws IOException | |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Encodes
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Overrides java. Encodes
| |
| write | back to summary |
|---|---|
| public void write(int c) throws IOException Overrides java. Encodes the specified
| |