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