org.sblim.cimclient.internal.http.io
Class KeepAliveInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.sblim.cimclient.internal.http.io.KeepAliveInputStream
- All Implemented Interfaces:
- Closeable
public class KeepAliveInputStream
- extends FilterInputStream
Class KeepAliveInputStream implements an input stream for connections that
keep iAlive after a request is completed
Method Summary |
void |
close()
|
int |
read()
|
int |
read(byte[] buf)
|
int |
read(byte[] buf,
int off,
int len)
|
long |
skip(long len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeepAliveInputStream
public KeepAliveInputStream(InputStream pStream,
HttpClient pClient)
- Ctor.
- Parameters:
pStream
- The underlying streampClient
- The associated client.
read
public int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] buf)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] buf,
int off,
int len)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
skip
public long skip(long len)
throws IOException
- Overrides:
skip
in class FilterInputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterInputStream
- Throws:
IOException
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.