@Deprecated
public class WrappedResponseInputStream
extends java.io.InputStream
Response that acts as a InputStream. When this WrappedResponseInputStream is closed it
closes the underlying Response object also to prevent blocking/hanging connections.| Constructor and Description |
|---|
WrappedResponseInputStream(javax.ws.rs.core.Response response)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Deprecated.
|
void |
close()
Deprecated.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isClosed()
Deprecated.
|
void |
mark(int readlimit)
Deprecated.
|
boolean |
markSupported()
Deprecated.
|
int |
read()
Deprecated.
|
int |
read(byte[] b)
Deprecated.
|
int |
read(byte[] b,
int off,
int len)
Deprecated.
|
void |
reset()
Deprecated.
|
long |
skip(long n)
Deprecated.
|
public WrappedResponseInputStream(javax.ws.rs.core.Response response)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
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 close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
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 boolean isClosed()
Copyright © 2020. All Rights Reserved.