public class QuotedPrintableOutputStream
extends java.io.FilterOutputStream
| Modifier and Type | Field and Description |
|---|---|
private boolean |
binary |
private boolean |
closed |
private static byte |
CR |
private static int |
DEFAULT_BUFFER_SIZE |
private static byte |
DOT |
private static byte |
EQ |
private static byte[] |
HEX_DIGITS |
private static byte |
LF |
private int |
nextSoftBreak |
private byte[] |
outBuffer |
private int |
outputIndex |
private boolean |
pendingCR |
private boolean |
pendingSpace |
private boolean |
pendingTab |
private static byte |
QUOTED_PRINTABLE_LAST_PLAIN |
private static int |
QUOTED_PRINTABLE_MAX_LINE_LENGTH |
private static int |
QUOTED_PRINTABLE_OCTETS_PER_ESCAPE |
private byte[] |
singleByte |
private static byte |
SP |
private static byte |
TB |
| Constructor and Description |
|---|
QuotedPrintableOutputStream(int bufsize,
java.io.OutputStream out,
boolean binary) |
QuotedPrintableOutputStream(java.io.OutputStream out,
boolean binary) |
| Modifier and Type | Method and Description |
|---|---|
private void |
clearPending() |
void |
close() |
private void |
completeEncoding() |
private void |
encode(byte next) |
private void |
encodeChunk(byte[] buffer,
int off,
int len) |
private void |
escape(byte next) |
void |
flush() |
(package private) void |
flushOutput() |
private void |
lineBreak() |
private void |
plain(byte next) |
private void |
softBreak() |
private void |
write(byte next) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
private void |
writePending() |
private static final int DEFAULT_BUFFER_SIZE
private static final byte TB
private static final byte SP
private static final byte EQ
private static final byte DOT
private static final byte CR
private static final byte LF
private static final byte QUOTED_PRINTABLE_LAST_PLAIN
private static final int QUOTED_PRINTABLE_MAX_LINE_LENGTH
private static final int QUOTED_PRINTABLE_OCTETS_PER_ESCAPE
private static final byte[] HEX_DIGITS
private final byte[] outBuffer
private final boolean binary
private boolean pendingSpace
private boolean pendingTab
private boolean pendingCR
private int nextSoftBreak
private int outputIndex
private boolean closed
private final byte[] singleByte
public QuotedPrintableOutputStream(int bufsize,
java.io.OutputStream out,
boolean binary)
public QuotedPrintableOutputStream(java.io.OutputStream out,
boolean binary)
private void encodeChunk(byte[] buffer,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionprivate void completeEncoding()
throws java.io.IOException
java.io.IOExceptionprivate void writePending()
throws java.io.IOException
java.io.IOExceptionprivate void clearPending()
throws java.io.IOException
java.io.IOExceptionprivate void encode(byte next)
throws java.io.IOException
java.io.IOExceptionprivate void plain(byte next)
throws java.io.IOException
java.io.IOExceptionprivate void escape(byte next)
throws java.io.IOException
java.io.IOExceptionprivate void write(byte next)
throws java.io.IOException
java.io.IOExceptionprivate void softBreak()
throws java.io.IOException
java.io.IOExceptionprivate void lineBreak()
throws java.io.IOException
java.io.IOExceptionvoid flushOutput()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOException