org.apache.james.mime4j.codec
Class QuotedPrintableOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.james.mime4j.codec.QuotedPrintableOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class QuotedPrintableOutputStream
- extends FilterOutputStream
Performs Quoted-Printable encoding on an underlying stream.
Encodes every "required" char plus the dot ".". We encode the dot
by default because this is a workaround for some "filter"/"antivirus"
"old mua" having issues with dots at the beginning or the end of a
qp encode line (maybe a bad dot-destuffing algo).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuotedPrintableOutputStream
public QuotedPrintableOutputStream(int bufsize,
OutputStream out,
boolean binary)
QuotedPrintableOutputStream
public QuotedPrintableOutputStream(OutputStream out,
boolean binary)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterOutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class FilterOutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.