org.sblim.cimclient.internal.http.io
Class ChunkedInputStream
java.lang.Object
java.io.InputStream
org.sblim.cimclient.internal.http.io.ChunkedInputStream
- All Implemented Interfaces:
- Closeable
public class ChunkedInputStream
- extends InputStream
Class ChunkedInputStream implements an input stream for chunked messages
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkedInputStream
public ChunkedInputStream(InputStream pStream)
- Ctor.
- Parameters:
pStream
- The stream to create this one upon
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] buf,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
getTrailers
public HttpHeader getTrailers()
- Return the http header trailers
- Returns:
- The trailers
skip
public long skip(long total)
throws IOException
- Overrides:
skip
in class InputStream
- Throws:
IOException
available
public int available()
- Overrides:
available
in class InputStream
- Returns:
- int
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.