Class WriterInterceptorExecutor.UnCloseableOutputStream
java.lang.Object
java.io.OutputStream
org.glassfish.jersey.message.internal.WriterInterceptorExecutor.UnCloseableOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- WriterInterceptorExecutor
MessageBodyWriter
s should not close the given stream
. This output
stream makes sure that the stream is not closed even if MBW tries to do it.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OutputStream
private final javax.ws.rs.ext.MessageBodyWriter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
UnCloseableOutputStream
(OutputStream original, javax.ws.rs.ext.MessageBodyWriter writer) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
original
-
writer
private final javax.ws.rs.ext.MessageBodyWriter writer
-
-
Constructor Details
-
UnCloseableOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-