Package com.sun.mail.util
Class UUEncoderStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.sun.mail.util.UUEncoderStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
This class implements a UUEncoder. It is implemented as
a FilterOutputStream, so one can just wrap this class around
any output stream and write bytes into this filter. The Encoding
is done as the bytes are written out.
- Author:
- John Mani
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a UUencoder that encodes the specified input streamUUEncoderStream
(OutputStream out, String name) Create a UUencoder that encodes the specified input streamUUEncoderStream
(OutputStream out, String name, int mode) Create a UUencoder that encodes the specified input stream -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
UUEncoderStream
Create a UUencoder that encodes the specified input stream- Parameters:
out
- the output stream
-
UUEncoderStream
Create a UUencoder that encodes the specified input stream- Parameters:
out
- the output streamname
- Specifies a name for the encoded buffer
-
UUEncoderStream
Create a UUencoder that encodes the specified input stream- Parameters:
out
- the output streamname
- Specifies a name for the encoded buffermode
- Specifies permission mode for the encoded buffer
-
-
Method Details
-
setNameMode
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- Parameters:
name
- the buffer namemode
- the permission mode
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-