Package ee.jakarta.tck.ws.rs.common.impl
Class ReplacingOutputStream
java.lang.Object
java.io.OutputStream
ee.jakarta.tck.ws.rs.common.impl.ReplacingOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected charprotected charprotected OutputStream -
Constructor Summary
ConstructorsConstructorDescriptionReplacingOutputStream(OutputStream wrappedStream, char what, char replace) ReplacingOutputStream(OutputStream wrappedStream, String newMessage) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
wrappedStream
-
what
protected char what -
replace
protected char replace -
newMessage
-
-
Constructor Details
-
ReplacingOutputStream
-
ReplacingOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
intToByteArray
public static final byte[] intToByteArray(int value) This is a hack for ascii characters only. The correct function should convert other bytes as well when appropriate. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-