Class EscapedOutputStream
java.lang.Object
java.io.OutputStream
net.ME1312.SubData.Client.Library.EscapedOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Escaped OutputStream Class
-
Constructor Summary
ConstructorDescriptionEscapedOutputStream
(OutputStream stream, int escape, int... controls) Creates an OutputStream with escaped controls -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
Constructor Details
-
EscapedOutputStream
Creates an OutputStream with escaped controls- Parameters:
stream
- Super streamescape
- Escape datacontrols
- Control data
-
-
Method Details
-
write
Write data to the stream- Specified by:
write
in classOutputStream
- Parameters:
b
- Data- Throws:
IOException
-
control
Write control data to the stream- Parameters:
b
- Control Data- Throws:
IOException
-
flush
Flush the stream- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
Close the stream- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-