edu.internet2.middleware.grouper.ws.j2ee
Class ServletInputStreamCopier
java.lang.Object
java.io.InputStream
javax.servlet.ServletInputStream
edu.internet2.middleware.grouper.ws.j2ee.ServletInputStreamCopier
- All Implemented Interfaces:
- Closeable
public class ServletInputStreamCopier
- extends ServletInputStream
copy bytes to a buffer
Method Summary |
byte[] |
getCopy()
get the copy |
int |
read()
|
ServletInputStreamCopier
public ServletInputStreamCopier(InputStream inputStream1)
- constructor
- Parameters:
inputStream1
-
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
- See Also:
InputStream.read()
getCopy
public byte[] getCopy()
- get the copy
- Returns:
- bytes