Class KeepAliveInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.sblim.cimclient.internal.http.io.KeepAliveInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class KeepAliveInputStream extends java.io.FilterInputStreamClass KeepAliveInputStream implements an input stream for connections that keep iAlive after a request is completed
-
-
Constructor Summary
Constructors Constructor Description KeepAliveInputStream(java.io.InputStream pStream, HttpClient pClient)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread()intread(byte[] buf)intread(byte[] buf, int off, int len)longskip(long len)
-
-
-
Constructor Detail
-
KeepAliveInputStream
public KeepAliveInputStream(java.io.InputStream pStream, HttpClient pClient)Ctor.- Parameters:
pStream- The underlying streampClient- The associated client.
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buf) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buf, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
skip
public long skip(long len) throws java.io.IOException- Overrides:
skipin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterInputStream- Throws:
java.io.IOException
-
-