org.tigris.subversion.javahl
Class SVNInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.PipedInputStream
          extended by org.tigris.subversion.javahl.SVNInputStream
All Implemented Interfaces:
Closeable

public class SVNInputStream
extends PipedInputStream

This class connects a java.io.PipedInputStream to a OutputInterface. The other side of the Pipe must read by another thread, or deadlocks will occur.


Nested Class Summary
 class SVNInputStream.Outputer
          this class implements the connection to SVNAdmin
 
Field Summary
 
Fields inherited from class java.io.PipedInputStream
buffer, in, out, PIPE_SIZE
 
Constructor Summary
SVNInputStream()
          Creates a SVNInputStream so that it is connected with an internal PipedOutputStream
 
Method Summary
 void close()
          Closes this input stream and releases any system resources associated with the stream.
 OutputInterface getOutputer()
          Get the Interface to connect to SVNAdmin
 
Methods inherited from class java.io.PipedInputStream
available, connect, read, read, receive
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVNInputStream

public SVNInputStream()
               throws IOException
Creates a SVNInputStream so that it is connected with an internal PipedOutputStream

Throws:
IOException
Method Detail

getOutputer

public OutputInterface getOutputer()
Get the Interface to connect to SVNAdmin

Returns:
the connection interface

close

public void close()
           throws IOException
Closes this input stream and releases any system resources associated with the stream.

The close method of InputStream does nothing.

Specified by:
close in interface Closeable
Overrides:
close in class PipedInputStream
Throws:
IOException - if an I/O error occurs.