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:
- java.io.Closeable, java.io.Flushable
public class QuotedPrintableOutputStream
- extends java.io.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).
Fields inherited from class java.io.FilterOutputStream |
out |
Methods inherited from class java.io.FilterOutputStream |
write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuotedPrintableOutputStream
public QuotedPrintableOutputStream(int bufsize,
java.io.OutputStream out,
boolean binary)
QuotedPrintableOutputStream
public QuotedPrintableOutputStream(java.io.OutputStream out,
boolean binary)
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.