org.opensolaris.opengrok.history
Class RCSget
java.lang.Object
java.io.InputStream
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)
Pass null in version to get current revision |
RCSget(java.lang.String file,
java.io.InputStream in,
java.lang.String version)
|
RCSget(java.lang.String file,
java.lang.String version)
|
Method Summary |
void |
close()
|
static void |
main(java.lang.String[] args)
|
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 |
RCSget
public RCSget(java.lang.String file)
throws java.io.IOException,
java.io.FileNotFoundException
- Pass null in version to get current revision
- Throws:
java.io.IOException
java.io.FileNotFoundException
RCSget
public RCSget(java.lang.String file,
java.lang.String version)
throws java.io.IOException,
java.io.FileNotFoundException
- Throws:
java.io.IOException
java.io.FileNotFoundException
RCSget
public RCSget(java.lang.String file,
java.io.InputStream in,
java.lang.String version)
throws java.io.IOException,
java.io.FileNotFoundException
- Throws:
java.io.IOException
java.io.FileNotFoundException
main
public static void main(java.lang.String[] args)
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