Class Overview
This class implements a Q Encoder as defined by RFC 2047 for
encoding MIME headers. It subclasses the QPEncoderStream class.
Summary
| Public Constructors |
|
|
QEncoderStream(OutputStream out, boolean encodingWord)
Create a Q encoder that encodes the specified input stream
|
| Public Methods |
|
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.
|
|
[Expand]
Inherited Methods |
From class
com.google.code.com.sun.mail.util.QPEncoderStream
|
void
|
close()
Forces any buffered output bytes to be encoded out to the stream
and closes this output stream
|
|
void
|
flush()
Flushes this output stream and forces any buffered output bytes
to be encoded out to the stream.
|
|
void
|
output(int c, boolean encode)
|
|
void
|
write(byte[] b, int off, int len)
Encodes len bytes from the specified
byte array starting at offset off to
this output stream.
|
|
void
|
write(byte[] b)
Encodes b.length bytes to this output stream.
|
|
void
|
write(int c)
Encodes the specified byte to this output stream.
|
|
From class
java.io.FilterOutputStream
|
void
|
close()
|
|
void
|
flush()
|
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
|
void
|
write(byte[] arg0)
|
|
void
|
write(int arg0)
|
|
From class
java.io.OutputStream
|
void
|
close()
|
|
void
|
flush()
|
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
|
void
|
write(byte[] arg0)
|
|
abstract
void
|
write(int arg0)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
java.io.Closeable
|
From interface
java.io.Flushable
|
Fields
private
static
String
TEXT_SPECIALS
private
static
String
WORD_SPECIALS
Public Constructors
public
QEncoderStream
(OutputStream out, boolean encodingWord)
Create a Q encoder that encodes the specified input stream
Parameters
| out
| The output stream |
| encodingWord
| True if we are Q-encoding a word within a
phrase.
|
Public Methods
public
static
int
encodedLength
(byte[] b, boolean encodingWord)
Returns the length of the encoded version of this byte array.
public
void
write
(int c)
Encodes the specified byte to this output stream.
Throws
| IOException
| if an I/O error occurs.
|