org.apache.activemq.transport.tcp
Class TcpBufferedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.activemq.transport.tcp.TcpBufferedInputStream
- All Implemented Interfaces:
- Closeable
public class TcpBufferedInputStream
- extends FilterInputStream
An optimized buffered input stream for Tcp
- Version:
- $Revision: 1.1.1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
internalBuffer
protected byte[] internalBuffer
count
protected int count
position
protected int position
TcpBufferedInputStream
public TcpBufferedInputStream(InputStream in)
TcpBufferedInputStream
public TcpBufferedInputStream(InputStream in,
int size)
read
public int read()
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class FilterInputStream
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available
in class FilterInputStream
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class FilterInputStream
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterInputStream
- Throws:
IOException
Copyright © 2011 Apache Software Foundation. All Rights Reserved.