public class UUEncoderStream
extends java.io.FilterOutputStream
Modifier and Type | Field and Description |
---|---|
protected boolean |
beginWritten |
protected byte[] |
buffer |
protected int |
bufferedBytes |
protected static int |
DEFAULT_MODE |
protected static java.lang.String |
DEFAULT_NAME |
protected UUEncoder |
encoder |
protected static int |
MAX_CHARS_PER_LINE |
protected int |
mode |
protected java.lang.String |
name |
Constructor and Description |
---|
UUEncoderStream(java.io.OutputStream out)
Create a Base64 encoder stream that wraps a specifed stream
using the default line break size.
|
UUEncoderStream(java.io.OutputStream out,
java.lang.String name)
Create a Base64 encoder stream that wraps a specifed stream
using the default line break size.
|
UUEncoderStream(java.io.OutputStream out,
java.lang.String name,
int mode) |
protected static final int DEFAULT_MODE
protected static final java.lang.String DEFAULT_NAME
protected static final int MAX_CHARS_PER_LINE
protected java.lang.String name
protected int mode
protected boolean beginWritten
protected UUEncoder encoder
protected int bufferedBytes
protected byte[] buffer
public UUEncoderStream(java.io.OutputStream out)
out
- The wrapped output stream.public UUEncoderStream(java.io.OutputStream out, java.lang.String name)
out
- The wrapped output stream.name
- The filename placed on the "begin" command.public UUEncoderStream(java.io.OutputStream out, java.lang.String name, int mode)
public void write(int ch) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] data) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void write(byte[] data, int offset, int length) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.FilterOutputStream
java.io.IOException
public 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