org.jboss.remoting.transport.coyote
Class CoyoteInputStream
java.lang.Object
java.io.InputStream
org.jboss.remoting.transport.coyote.CoyoteInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class CoyoteInputStream
- extends java.io.InputStream
This class handles reading bytes.
- Author:
- Remy Maucherat, Jean-Francois Arcand
Method Summary |
int |
available()
|
protected java.lang.Object |
clone()
Prevent cloning the facade. |
void |
close()
Close the stream
Since we re-cycle, we can't allow the call to super.close()
which would permantely disable us. |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.InputStream |
mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ib
protected InputBuffer ib
CoyoteInputStream
protected CoyoteInputStream(InputBuffer ib)
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Prevent cloning the facade.
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Close the stream
Since we re-cycle, we can't allow the call to super.close()
which would permantely disable us.
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException
Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.