public class QPOutputStream
extends java.io.FilterOutputStream
FilterOutputStream
Constructor and Description |
---|
QPOutputStream(java.io.OutputStream stream)
Create a new Quoted Printable Encoding stream with
the default 76 bytes per line.
|
QPOutputStream(java.io.OutputStream stream,
int length)
Create a new Quoted Printable Encoding stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close stream.
|
void |
flush()
Flush encoding buffer.
|
protected void |
output(int b,
boolean value)
????
|
void |
write(byte[] bytes)
Write bytes to stream.
|
void |
write(byte[] bytes,
int offset,
int length)
Write bytes to encoding stream.
|
void |
write(int b)
Write a byte to the stream.
|
public QPOutputStream(java.io.OutputStream stream, int length)
stream
- Output streamlength
- Number of bytes per linepublic QPOutputStream(java.io.OutputStream stream)
stream
- Output streampublic void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.FilterOutputStream
java.io.IOException
- IO Exception occurredpublic void write(byte[] bytes, int offset, int length) throws java.io.IOException
write
in class java.io.FilterOutputStream
bytes
- Byte array to read values fromoffset
- Offset to start reading bytes fromlength
- Number of bytes to readjava.io.IOException
- IO Exception occurredpublic void write(byte[] bytes) throws java.io.IOException
write
in class java.io.FilterOutputStream
bytes
- Byte array to write to streamjava.io.IOException
- IO Exception occurredpublic void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
b
- Byte to write to the streamjava.io.IOException
- IO Exception occurredpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterOutputStream
java.io.IOException
- IO Exception occurredprotected void output(int b, boolean value) throws java.io.IOException
b
- ??value
- ??java.io.IOException
- IO Exception occurred