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 String
protected char
protected char
protected 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:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-