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) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] data) |
void |
write(byte[] data,
int offset,
int length) |
void |
write(int ch) |
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.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] data)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] data,
int offset,
int length)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterOutputStreamjava.io.IOException