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.IOException
SVNException
public static SVNPatchFileStream openRangeReadOnly(java.io.File path, long start, long end) throws java.io.IOException, SVNException
java.io.IOException
SVNException
public static SVNPatchFileStream openForWrite(java.io.File path) throws java.io.IOException, SVNException
java.io.IOException
SVNException
public java.io.File getPath()
public void setLineFilter(SVNPatchFileStream.SVNPatchFileLineFilter lineFilter)
public void setLineTransformer(SVNPatchFileStream.SVNPatchFileLineTransformer lineTransfomer)
private java.io.RandomAccessFile getFile() throws SVNException
SVNException
public void reset() throws java.io.IOException, SVNException
java.io.IOException
SVNException
public void close() throws java.io.IOException
java.io.IOException
public boolean isEOF() throws java.io.IOException, SVNException
java.io.IOException
SVNException
public long getSeekPosition() throws SVNException, java.io.IOException
SVNException
java.io.IOException
public void setSeekPosition(long pos) throws SVNException, java.io.IOException
SVNException
java.io.IOException
private void checkPos(long pos) throws SVNException
SVNException
private boolean isPosValid(long pos)
public void write(java.lang.String str) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public void write(java.lang.StringBuffer str) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public void tryWrite(java.lang.StringBuffer lineBuf) throws SVNException, java.io.IOException
SVNException
java.io.IOException
public boolean readLineWithEol(java.lang.StringBuffer lineBuf, java.lang.StringBuffer eolStr) throws java.io.IOException, SVNException
java.io.IOException
SVNException
public boolean readLine(java.lang.StringBuffer lineBuf) throws java.io.IOException, SVNException
java.io.IOException
SVNException
public boolean readLine(java.lang.StringBuffer lineBuf, java.lang.String eolStr) throws java.io.IOException, SVNException
java.io.IOException
SVNException
private boolean readLine(java.lang.StringBuffer input, java.lang.StringBuffer eolStr, boolean detectEol) throws java.io.IOException, SVNException
java.io.IOException
SVNException