Package de.audioattack.util.uunecode
Class UUDecoderStream
- java.lang.Object
-
- java.io.OutputStream
-
- de.audioattack.util.uunecode.UUDecoderStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class UUDecoderStream extends OutputStream
This class implements an output stream for decoding data in the UUencode format.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description UUDecoderStream(OutputStream outputStream)Creates a new UU decoder output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()StringgetFilename()Gets the filename after decoding.IntegergetMode()Gets the mode after decoding.voidwrite(int i)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
UUDecoderStream
public UUDecoderStream(OutputStream outputStream)
Creates a new UU decoder output stream.- Parameters:
outputStream- the underlying output stream the decoded data is 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
-
getMode
public Integer getMode()
Gets the mode after decoding.- Returns:
- the mode or
nullif data is not decoded yet
-
getFilename
public String getFilename()
Gets the filename after decoding.- Returns:
- the filename or
nullif data is not decoded yet
-
-