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
MessageBodyWriters 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 OutputStreamprivate final javax.ws.rs.ext.MessageBodyWriter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUnCloseableOutputStream(OutputStream original, javax.ws.rs.ext.MessageBodyWriter writer) -
Method Summary
Methods inherited from class OutputStream
nullOutputStream
-
Field Details
-
original
-
writer
private final javax.ws.rs.ext.MessageBodyWriter writer
-
-
Constructor Details
-
UnCloseableOutputStream
-
-
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
-