public class ChunkedInputStream
extends java.io.InputStream
Constructor and Description |
---|
ChunkedInputStream(java.io.InputStream pStream,
java.lang.String pTrailerFields)
Ctor.
|
ChunkedInputStream(java.io.InputStream pStream,
java.lang.String pTrailerFields,
java.lang.String pOrigin)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
HttpHeader |
getTrailers()
Return the http header trailers
|
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
long |
skip(long total) |
public ChunkedInputStream(java.io.InputStream pStream, java.lang.String pTrailerFields)
pStream
- The stream to create this one uponpTrailerFields
- The names of trailer fieldspublic ChunkedInputStream(java.io.InputStream pStream, java.lang.String pTrailerFields, java.lang.String pOrigin)
pStream
- The stream to create this one uponpTrailerFields
- The names of trailer fieldspOrigin
- The origin of the stream (response, indication request, etc.)public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public HttpHeader getTrailers()
public long skip(long total) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int available()
available
in class java.io.InputStream
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.