Class ReaderInterceptorExecutor.UnCloseableInputStream
java.lang.Object
java.io.InputStream
org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.UnCloseableInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- ReaderInterceptorExecutor
MessageBodyReader
s should not close the given stream
. This input
stream makes sure that the stream is not closed even if MBR tries to do it.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InputStream
private final javax.ws.rs.ext.MessageBodyReader
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
UnCloseableInputStream
(InputStream original, javax.ws.rs.ext.MessageBodyReader reader) -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
original
-
reader
private final javax.ws.rs.ext.MessageBodyReader reader
-
-
Constructor Details
-
UnCloseableInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int i) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
unwrap
-