| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| private int | |
| private String | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | UUEncoderStream(OutputStream
the output stream out)Create a UUencoder that encodes the specified input stream |
| public | UUEncoderStream(OutputStream
the output stream out, String Specifies a name for the encoded buffer name)Create a UUencoder that encodes the specified input stream |
| public | UUEncoderStream(OutputStream
the output stream out, String Specifies a name for the encoded buffer name, int Specifies permission mode for the encoded buffer mode)Create a UUencoder that encodes the specified input stream |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| private void | |
| public void | flush()
Overrides java. Implements java. |
| public void | setNameMode(String
the buffer name name, int the permission mode mode)Set up the buffer name and permission mode. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. len bytes from the specified
byte array starting at offset off to
this output stream.
|
| public void | write(byte[]
the data to be written. data)Overrides java. b.length bytes to this output stream.
|
| public void | write(int
the c)byte.Overrides java. byte to this output stream.
|
| private void | |
| private void | writeSuffix()
Write a single line containing space and the suffix line containing the single word "end" (terminated by a newline) |
| buffer | back to summary |
|---|---|
| private byte[] buffer | |
| bufsize | back to summary |
|---|---|
| private int bufsize | |
| mode | back to summary |
|---|---|
| private int mode | |
| name | back to summary |
|---|---|
| private String name | |
| wrotePrefix | back to summary |
|---|---|
| private boolean wrotePrefix | |
| wroteSuffix | back to summary |
|---|---|
| private boolean wroteSuffix | |
| UUEncoderStream | back to summary |
|---|---|
| public UUEncoderStream(OutputStream out) Create a UUencoder that encodes the specified input stream
| |
| UUEncoderStream | back to summary |
|---|---|
| public UUEncoderStream(OutputStream out, String name) Create a UUencoder that encodes the specified input stream
| |
| UUEncoderStream | back to summary |
|---|---|
| public UUEncoderStream(OutputStream out, String name, int mode) Create a UUencoder that encodes the specified input stream
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources associated with the stream.
| |
| encode | back to summary |
|---|---|
| private void encode() throws IOException Encode a line. Start off with the character count, followed by the encoded atoms and terminate with LF. (or is it CRLF or the local line-terminator ?) Take three bytes and encodes them into 4 characters If bufsize if not a multiple of 3, the remaining bytes are filled with '1'. This insures that the last line won't end in spaces and potentiallly be truncated. | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes to be written out to the stream.
| |
| setNameMode | back to summary |
|---|---|
| public void setNameMode(String name, int mode) Set up the buffer name and permission mode. This method has any effect only if it is invoked before you start writing into the output stream
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] data) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(int c) throws IOException Overrides java. Doc from java. Writes the specified
The
Implements the abstract
| |
| writePrefix | back to summary |
|---|---|
| private void writePrefix() throws IOException Write out the prefix: "begin | |
| writeSuffix | back to summary |
|---|---|
| private void writeSuffix() throws IOException Write a single line containing space and the suffix line containing the single word "end" (terminated by a newline) | |