InputStream that turns the close method into a no-op, and
requires the calling of the doClose method instead.
This is necessary, because Jersey closes a stream once it has been read, but we may want to reset and read it again for retries.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| public static void | closeStream(InputStream
input stream to close is)Close a stream, dealing properly with |
| public void |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| KeepOpenInputStream | back to summary |
|---|---|
| public KeepOpenInputStream(InputStream is) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| closeStream | back to summary |
|---|---|
| public static void closeStream(InputStream is) Close a stream, dealing properly with
| |
| doClose | back to summary |
|---|---|
| public void doClose() throws IOException This method actually closes the stream, what
| |