public class SVNPatchFileStream
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SVNPatchFileStream.SVNPatchFileLineFilter |
static interface |
SVNPatchFileStream.SVNPatchFileLineTransformer |
| Modifier and Type | Field and Description |
|---|---|
private long |
end |
private java.io.RandomAccessFile |
file |
private SVNPatchFileStream.SVNPatchFileLineFilter |
lineFilter |
private SVNPatchFileStream.SVNPatchFileLineTransformer |
lineTransformer |
private java.io.File |
path |
private long |
start |
private boolean |
write |
| Modifier | Constructor and Description |
|---|---|
private |
SVNPatchFileStream(java.io.File path,
boolean write) |
private |
SVNPatchFileStream(java.io.File path,
boolean write,
long start,
long end) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkPos(long pos) |
void |
close() |
private java.io.RandomAccessFile |
getFile() |
java.io.File |
getPath() |
long |
getSeekPosition() |
boolean |
isEOF() |
private boolean |
isPosValid(long pos) |
static SVNPatchFileStream |
openForWrite(java.io.File path) |
static SVNPatchFileStream |
openRangeReadOnly(java.io.File path,
long start,
long end) |
static SVNPatchFileStream |
openReadOnly(java.io.File path) |
boolean |
readLine(java.lang.StringBuffer lineBuf) |
boolean |
readLine(java.lang.StringBuffer lineBuf,
java.lang.String eolStr) |
private boolean |
readLine(java.lang.StringBuffer input,
java.lang.StringBuffer eolStr,
boolean detectEol) |
boolean |
readLineWithEol(java.lang.StringBuffer lineBuf,
java.lang.StringBuffer eolStr) |
void |
reset()
Reset a generic stream back to its origin.
|
void |
setLineFilter(SVNPatchFileStream.SVNPatchFileLineFilter lineFilter) |
void |
setLineTransformer(SVNPatchFileStream.SVNPatchFileLineTransformer lineTransfomer) |
void |
setSeekPosition(long pos) |
void |
tryWrite(java.lang.StringBuffer lineBuf) |
void |
write(java.lang.String str) |
void |
write(java.lang.StringBuffer str) |
private java.io.File path
private boolean write
private long start
private long end
private java.io.RandomAccessFile file
private SVNPatchFileStream.SVNPatchFileLineFilter lineFilter
private SVNPatchFileStream.SVNPatchFileLineTransformer lineTransformer
private SVNPatchFileStream(java.io.File path,
boolean write,
long start,
long end)
private SVNPatchFileStream(java.io.File path,
boolean write)
public static SVNPatchFileStream openReadOnly(java.io.File path) throws java.io.IOException, SVNException
java.io.IOExceptionSVNExceptionpublic static SVNPatchFileStream openRangeReadOnly(java.io.File path, long start, long end) throws java.io.IOException, SVNException
java.io.IOExceptionSVNExceptionpublic static SVNPatchFileStream openForWrite(java.io.File path) throws java.io.IOException, SVNException
java.io.IOExceptionSVNExceptionpublic java.io.File getPath()
public void setLineFilter(SVNPatchFileStream.SVNPatchFileLineFilter lineFilter)
public void setLineTransformer(SVNPatchFileStream.SVNPatchFileLineTransformer lineTransfomer)
private java.io.RandomAccessFile getFile()
throws SVNException
SVNExceptionpublic void reset()
throws java.io.IOException,
SVNException
java.io.IOExceptionSVNExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic boolean isEOF()
throws java.io.IOException,
SVNException
java.io.IOExceptionSVNExceptionpublic long getSeekPosition()
throws SVNException,
java.io.IOException
SVNExceptionjava.io.IOExceptionpublic void setSeekPosition(long pos)
throws SVNException,
java.io.IOException
SVNExceptionjava.io.IOExceptionprivate void checkPos(long pos)
throws SVNException
SVNExceptionprivate boolean isPosValid(long pos)
public void write(java.lang.String str)
throws SVNException,
java.io.IOException
SVNExceptionjava.io.IOExceptionpublic void write(java.lang.StringBuffer str)
throws SVNException,
java.io.IOException
SVNExceptionjava.io.IOExceptionpublic void tryWrite(java.lang.StringBuffer lineBuf)
throws SVNException,
java.io.IOException
SVNExceptionjava.io.IOExceptionpublic boolean readLineWithEol(java.lang.StringBuffer lineBuf,
java.lang.StringBuffer eolStr)
throws java.io.IOException,
SVNException
java.io.IOExceptionSVNExceptionpublic boolean readLine(java.lang.StringBuffer lineBuf)
throws java.io.IOException,
SVNException
java.io.IOExceptionSVNExceptionpublic boolean readLine(java.lang.StringBuffer lineBuf,
java.lang.String eolStr)
throws java.io.IOException,
SVNException
java.io.IOExceptionSVNExceptionprivate boolean readLine(java.lang.StringBuffer input,
java.lang.StringBuffer eolStr,
boolean detectEol)
throws java.io.IOException,
SVNException
java.io.IOExceptionSVNException