Package org.eclipse.angus.mail.util
Class QEncoderStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.eclipse.angus.mail.util.QPEncoderStream
org.eclipse.angus.mail.util.QEncoderStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
This class implements a Q Encoder as defined by RFC 2047 for
encoding MIME headers. It subclasses the QPEncoderStream class.
- Author:
- John Mani
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionQEncoderStream(OutputStream out, boolean encodingWord) Create a Q encoder that encodes the specified input stream -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(int c) Encodes the specifiedbyteto this output stream.Methods inherited from class org.eclipse.angus.mail.util.QPEncoderStream
close, flush, output, write, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
QEncoderStream
Create a Q encoder that encodes the specified input stream- Parameters:
out- the output streamencodingWord- true if we are Q-encoding a word within a phrase.
-
-
Method Details
-
write
Encodes the specifiedbyteto this output stream.- Overrides:
writein classQPEncoderStream- Parameters:
c- thebyte.- Throws:
IOException- if an I/O error occurs.
-