Package host.anzo.simon
Class RawChannelOutputStream
java.lang.Object
java.io.OutputStream
host.anzo.simon.RawChannelOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
OutputStream wrapper for SIMON RawChannel
- Since:
- 1.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionRawChannelOutputStream(RawChannel rawChannel) To create an outputstream for a rawchannel, you actually need an raw channel -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
RawChannelOutputStream
To create an outputstream for a rawchannel, you actually need an raw channel- Parameters:
rawChannel- the raw channel to write to
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
isClosed
public boolean isClosed()Returntrue, is channel is already closed andfalseis still open and useable.- Returns:
- closed-state of outputstream
-