public class QEncoderStream extends QPEncoderStream
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
specials |
private static java.lang.String |
TEXT_SPECIALS |
private static java.lang.String |
WORD_SPECIALS |
Constructor and Description |
---|
QEncoderStream(java.io.OutputStream out,
boolean encodingWord)
Create a Q encoder that encodes the specified input stream
|
Modifier and Type | Method and Description |
---|---|
static int |
encodedLength(byte[] b,
boolean encodingWord)
Returns the length of the encoded version of this byte array.
|
void |
write(int c)
Encodes the specified
byte to this output stream. |
private java.lang.String specials
private static java.lang.String WORD_SPECIALS
private static java.lang.String TEXT_SPECIALS
public QEncoderStream(java.io.OutputStream out, boolean encodingWord)
out
- the output streamencodingWord
- true if we are Q-encoding a word within a
phrase.public void write(int c) throws java.io.IOException
byte
to this output stream.write
in class QPEncoderStream
c
- the byte
.java.io.IOException
- if an I/O error occurs.public static int encodedLength(byte[] b, boolean encodingWord)