Package org.tigris.subversion.javahl
Class SVNInputStream
java.lang.Object
java.io.InputStream
java.io.PipedInputStream
org.tigris.subversion.javahl.SVNInputStream
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class SVNInputStream
extends java.io.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
Nested ClassesModifier and TypeClassDescriptionclass
this class implements the connection to SVNAdmin -
Field Summary
FieldsModifier and TypeFieldDescription(package private) SVNInputStream.Outputer
my connection to put data into subversionFields inherited from class java.io.PipedInputStream
buffer, in, out, PIPE_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a SVNInputStream so that it is connected with an internal PipedOutputStream -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this input stream and releases any system resources associated with the stream.Get the Interface to connect to SVNAdminMethods inherited from class java.io.PipedInputStream
available, connect, read, read, receive
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
myOutputer
SVNInputStream.Outputer myOutputermy connection to put data into subversion
-
-
Constructor Details
-
SVNInputStream
public SVNInputStream() throws java.io.IOExceptionCreates a SVNInputStream so that it is connected with an internal PipedOutputStream- Throws:
java.io.IOException
-
-
Method Details
-
getOutputer
Get the Interface to connect to SVNAdmin- Returns:
- the connection interface
-
close
public void close() throws java.io.IOExceptionCloses this input stream and releases any system resources associated with the stream.The
close
method ofInputStream
does nothing.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.PipedInputStream
- Throws:
java.io.IOException
- if an I/O error occurs.
-