com.caucho.remote.websocket
Class MaskedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.caucho.remote.websocket.MaskedInputStream
All Implemented Interfaces:
java.io.Closeable

public class MaskedInputStream
extends java.io.InputStream

User facade for http requests.


Constructor Summary
MaskedInputStream()
           
 
Method Summary
 int available()
           
 void init(java.io.InputStream is)
           
 int read()
           
 boolean readMask()
           
 java.lang.String toString()
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaskedInputStream

public MaskedInputStream()
Method Detail

init

public void init(java.io.InputStream is)

readMask

public boolean readMask()
                 throws java.io.IOException
Throws:
java.io.IOException

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object