private static class ReaderInterceptorExecutor.UnCloseableInputStream
extends java.io.InputStream
MessageBodyReaders should not close the given stream. This input
stream makes sure that the stream is not closed even if MBR tries to do it.| Modifier and Type | Field and Description |
|---|---|
private java.io.InputStream |
original |
private javax.ws.rs.ext.MessageBodyReader |
reader |
| Modifier | Constructor and Description |
|---|---|
private |
UnCloseableInputStream(java.io.InputStream original,
javax.ws.rs.ext.MessageBodyReader reader) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int i) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long l) |
private java.io.InputStream |
unwrap() |
private final java.io.InputStream original
private final javax.ws.rs.ext.MessageBodyReader reader
private UnCloseableInputStream(java.io.InputStream original,
javax.ws.rs.ext.MessageBodyReader reader)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long l)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int i)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionprivate java.io.InputStream unwrap()