Package de.audioattack.util.uunecode
Class UUEncoderStream
- java.lang.Object
-
- java.io.OutputStream
-
- de.audioattack.util.uunecode.UUEncoderStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class UUEncoderStream extends OutputStream
This class implements an output stream for encoding data in the UUencode format.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description UUEncoderStream(OutputStream outputStream, int mode, String filename)Creates a new UU decoder output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(int i)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
UUEncoderStream
public UUEncoderStream(OutputStream outputStream, int mode, String filename) throws IOException
Creates a new UU decoder output stream.- Parameters:
outputStream- the underlying output stream the encoded data is written tomode- the file's Unix file permissionsfilename- the filename- Throws:
IOException- if underlying output stream can not be written to
-
-
Method Detail
-
write
public void write(int i) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-