HPSearch

cgl.hpsearch.engine.URIBindings
Class IOBridge

java.lang.Object
  extended byjava.io.InputStream
      extended bycgl.hpsearch.engine.URIBindings.IOBridge

public class IOBridge
extends InputStream

Provides an easy way of converting an OutputStream to InputStream.
Contains 2 threads implementing a PipeInputStream and PipeOutputStream. The write calls write to the pipe and the read calls are used to read from the pipe.

Author:
Harshawardhan S. Gadgil $Date: 2005/10/16 14:41:00 $

Constructor Summary
IOBridge()
          Deprecated.  
IOBridge(NBNativeStreamHandler nbnativeStream)
          Deprecated.  
 
Method Summary
 int available()
          Deprecated.  
 void close()
          Deprecated.  
 void closeBridge()
          Deprecated.  
 void eof()
          Deprecated.  
 void init()
          Deprecated.  
 int read()
          Deprecated.  
 int read(byte[] buf)
          Deprecated.  
 int read(byte[] buf, int offset, int len)
          Deprecated.  
 void write(byte[] buf)
          Deprecated.  
 void write(byte[] inbuf, int offset, int len)
          Deprecated.  
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOBridge

public IOBridge(NBNativeStreamHandler nbnativeStream)
         throws IOException
Deprecated. 

IOBridge

public IOBridge()
         throws IOException
Deprecated. 
Method Detail

init

public void init()
          throws IOException
Deprecated. 
Throws:
IOException

read

public int read()
Deprecated. 

write

public void write(byte[] buf)
           throws IOException
Deprecated. 
Throws:
IOException

write

public void write(byte[] inbuf,
                  int offset,
                  int len)
           throws IOException
Deprecated. 
Throws:
IOException

eof

public void eof()
Deprecated. 

read

public int read(byte[] buf,
                int offset,
                int len)
         throws IOException
Deprecated. 
Throws:
IOException

read

public int read(byte[] buf)
         throws IOException
Deprecated. 
Throws:
IOException

closeBridge

public void closeBridge()
                 throws IOException
Deprecated. 
Throws:
IOException

close

public void close()
           throws IOException
Deprecated. 
Throws:
IOException

available

public int available()
              throws IOException
Deprecated. 
Throws:
IOException

HPSearch

For comments and suggestions please send e-mail to Harshawardhan Gadgil
Last updated: June 9 2006