Closeable, Flushable, AutoCloseablepublic class UUEncoderStream extends FilterOutputStream
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
mode |
|
protected String |
name |
out| Constructor | Description |
|---|---|
UUEncoderStream(OutputStream out) |
Create a UUencoder that encodes the specified input stream
|
UUEncoderStream(OutputStream out,
String name) |
Create a UUencoder that encodes the specified input stream
|
UUEncoderStream(OutputStream out,
String name,
int mode) |
Create a UUencoder that encodes the specified input stream
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
flush() |
|
void |
setNameMode(String name,
int mode) |
Set up the buffer name and permission mode.
|
void |
write(byte[] data) |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int c) |
protected String name
protected int mode
public UUEncoderStream(OutputStream out)
out - the output streampublic UUEncoderStream(OutputStream out, String name)
out - the output streamname - Specifies a name for the encoded bufferpublic UUEncoderStream(OutputStream out, String name, int mode)
out - the output streamname - Specifies a name for the encoded buffermode - Specifies permission mode for the encoded bufferpublic void setNameMode(String name, int mode)
name - name to set for the buffer.mode - permission mode.public void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] data)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(int c)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class FilterOutputStreamIOExceptionCopyright © 2018 Oracle. All rights reserved.