org.opensolaris.opengrok.history
Class RCSget

java.lang.Object
  extended by java.io.InputStream
      extended by org.opensolaris.opengrok.history.RCSget
All Implemented Interfaces:
java.io.Closeable

public class RCSget
extends java.io.InputStream

Virtualise RCS log as an input stream


Constructor Summary
RCSget(java.lang.String file, java.lang.String version)
          Pass null in version to get current revision
 
Method Summary
 void close()
           
 void mark(int readlimit)
           
 int read()
           
 int read(byte[] buffer, int pos, int len)
           
 void reset()
           
 
Methods inherited from class java.io.InputStream
available, markSupported, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCSget

public RCSget(java.lang.String file,
              java.lang.String version)
       throws java.io.IOException,
              java.io.FileNotFoundException
Pass null in version to get current revision

Throws:
java.io.IOException
java.io.FileNotFoundException
Method Detail

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.InputStream

read

public int read(byte[] buffer,
                int pos,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException