站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended byjava.io.InputStream
      extended byorg.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

Constructor Summary
InterruptableInputStream(InputStream is)
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterruptableInputStream

public InterruptableInputStream(InputStream is)
Method Detail

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.