org.cyberiantiger.telnet
Class TelnetBufferedInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byorg.cyberiantiger.telnet.TelnetBufferedInputStream

public class TelnetBufferedInputStream
extends java.io.FilterInputStream

A buffered input stream which will not do a blocking read unless explictely told to do so


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
TelnetBufferedInputStream(java.io.InputStream in)
           
 
Method Summary
 int available()
           
 void fillBuffer()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int bOff, int bLen)
           
 void setAllowBlocking(boolean allowBlocking)
           
 
Methods inherited from class java.io.FilterInputStream
close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelnetBufferedInputStream

public TelnetBufferedInputStream(java.io.InputStream in)
Method Detail

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] b,
                int bOff,
                int bLen)
         throws java.io.IOException
Throws:
java.io.IOException

fillBuffer

public void fillBuffer()
                throws java.io.IOException
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Throws:
java.io.IOException

setAllowBlocking

public void setAllowBlocking(boolean allowBlocking)


Copyright © 2003 OSJava. All Rights Reserved.