当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 common API Documentation 英文版文档
InterruptableInputStream (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档
org.jboss.net.sockets
Class InterruptableInputStream
java.lang.Object
java.io.InputStream
org.jboss.net.sockets.InterruptableInputStream
- public class InterruptableInputStream
- extends InputStream
An InputStream that uses the SocketTimeoutException thrown during read
timeouts to check if the thread has been interrupted.
- Version:
- $Revision: 1.1 $
- Author:
- Scott.Stark@jboss.org
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterruptableInputStream
public InterruptableInputStream(InputStream is)
read
public int read()
throws IOException
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Throws:
IOException
available
public int available()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
mark
public void mark(int readlimit)
reset
public void reset()
throws IOException
- Throws:
IOException
markSupported
public boolean markSupported()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.