Modifier and Type | Field and Description |
---|---|
protected int |
bytesWritten |
protected int |
cachedCharacter |
protected static byte[] |
decodingTable |
protected int |
deferredWhitespace |
protected static byte[] |
encodingTable |
protected boolean |
lastCR |
protected boolean |
lastWhitespace |
protected int |
lineCount |
protected int |
lineLength |
protected java.io.OutputStream |
out |
Constructor and Description |
---|
QuotedPrintableEncoder() |
QuotedPrintableEncoder(java.io.OutputStream out) |
QuotedPrintableEncoder(java.io.OutputStream out,
int lineLength) |
Modifier and Type | Method and Description |
---|---|
int |
decode(byte[] data,
int off,
int length,
java.io.OutputStream out)
decode the uuencoded byte data writing it to the given output stream
|
int |
decode(java.io.InputStream in) |
int |
decode(java.lang.String data,
java.io.OutputStream out)
decode the UUEncoded String data writing it to the given output stream.
|
int |
decodeWord(byte[] data,
int off,
int length,
java.io.OutputStream out)
decode the uuencoded byte data writing it to the given output stream
|
int |
decodeWord(byte[] data,
java.io.OutputStream out)
Decode a byte array of data.
|
int |
encode(byte[] data,
int off,
int length)
encode the input data producing a UUEncoded output stream.
|
int |
encode(byte[] data,
int off,
int length,
java.io.OutputStream out)
encode the input data producing a UUEncoded output stream.
|
int |
encode(byte[] data,
int off,
int length,
java.lang.String specials)
encode the input data producing a UUEncoded output stream.
|
void |
encode(int ch) |
void |
encode(int ch,
java.lang.String specials)
Specialized version of the decoder that handles encoding of
RFC 2047 encoded word values.
|
int |
encode(java.io.PushbackInputStream in,
java.lang.StringBuffer out,
java.lang.String specials,
int limit)
encode the input data producing a UUEncoded output stream.
|
void |
encodeWord(java.io.InputStream in,
java.lang.String charset,
java.lang.String specials,
java.io.OutputStream out,
boolean fold)
Perform RFC-2047 word encoding using Q-P data encoding.
|
void |
writeCharacter(int ch) |
void |
writeEncodedCharacter(int ch) |
void |
writeEOL() |
protected static final byte[] encodingTable
protected static final byte[] decodingTable
protected java.io.OutputStream out
protected int bytesWritten
protected int lineCount
protected int lineLength
protected int deferredWhitespace
protected int cachedCharacter
protected boolean lastCR
protected boolean lastWhitespace
public QuotedPrintableEncoder()
public QuotedPrintableEncoder(java.io.OutputStream out)
public QuotedPrintableEncoder(java.io.OutputStream out, int lineLength)
public int encode(byte[] data, int off, int length) throws java.io.IOException
data
- The array of byte data.off
- The starting offset within the data.length
- Length of the data to encode.java.io.IOException
public void encode(int ch) throws java.io.IOException
java.io.IOException
public int encode(byte[] data, int off, int length, java.lang.String specials) throws java.io.IOException
data
- The array of byte data.off
- The starting offset within the data.length
- Length of the data to encode.java.io.IOException
public int encode(java.io.PushbackInputStream in, java.lang.StringBuffer out, java.lang.String specials, int limit) throws java.io.IOException
data
- The array of byte data.off
- The starting offset within the data.length
- Length of the data to encode.java.io.IOException
public void encode(int ch, java.lang.String specials) throws java.io.IOException
ch
- specials
- java.io.IOException
public int encode(byte[] data, int off, int length, java.io.OutputStream out) throws java.io.IOException
public int decode(byte[] data, int off, int length, java.io.OutputStream out) throws java.io.IOException
public int decodeWord(byte[] data, java.io.OutputStream out) throws java.io.IOException
data
- The data array.out
- The output stream target for the decoded data.java.io.IOException
public int decodeWord(byte[] data, int off, int length, java.io.OutputStream out) throws java.io.IOException
data
- The array of byte data to decode.off
- Starting offset within the array.length
- The length of data to encode.out
- The output stream used to return the decoded data.java.io.IOException
public int decode(java.lang.String data, java.io.OutputStream out) throws java.io.IOException
public void writeEncodedCharacter(int ch) throws java.io.IOException
java.io.IOException
public void writeCharacter(int ch) throws java.io.IOException
java.io.IOException
public void writeEOL() throws java.io.IOException
java.io.IOException
public int decode(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void encodeWord(java.io.InputStream in, java.lang.String charset, java.lang.String specials, java.io.OutputStream out, boolean fold) throws java.io.IOException
in
- The source for the encoded data.charset
- The charset tag to be added to each encoded data section.specials
- The set of special characters that we require to encoded.out
- The output stream where the encoded data is to be written.fold
- Controls whether separate sections of encoded data are separated by
linebreaks or whitespace.java.io.IOException