Class SVNPatchFileStream
java.lang.Object
org.tmatesoft.svn.core.internal.wc.patch.SVNPatchFileStream
- Version:
- 1.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private RandomAccessFile
private File
private long
private boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SVNPatchFileStream
(File path, boolean write) private
SVNPatchFileStream
(File path, boolean write, long start, long end) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkPos
(long pos) void
close()
private RandomAccessFile
getFile()
getPath()
long
boolean
isEOF()
private boolean
isPosValid
(long pos) static SVNPatchFileStream
openForWrite
(File path) static SVNPatchFileStream
openRangeReadOnly
(File path, long start, long end) static SVNPatchFileStream
openReadOnly
(File path) boolean
readLine
(StringBuffer lineBuf) boolean
readLine
(StringBuffer lineBuf, String eolStr) private boolean
readLine
(StringBuffer input, StringBuffer eolStr, boolean detectEol) boolean
readLineWithEol
(StringBuffer lineBuf, StringBuffer eolStr) void
reset()
Reset a generic stream back to its origin.void
void
setLineTransformer
(SVNPatchFileStream.SVNPatchFileLineTransformer lineTransfomer) void
setSeekPosition
(long pos) void
tryWrite
(StringBuffer lineBuf) void
void
write
(StringBuffer str)
-
Field Details
-
path
-
write
private boolean write -
start
private long start -
end
private long end -
file
-
lineFilter
-
lineTransformer
-
-
Constructor Details
-
SVNPatchFileStream
-
SVNPatchFileStream
-
-
Method Details
-
openReadOnly
- Throws:
IOException
SVNException
-
openRangeReadOnly
public static SVNPatchFileStream openRangeReadOnly(File path, long start, long end) throws IOException, SVNException - Throws:
IOException
SVNException
-
openForWrite
- Throws:
IOException
SVNException
-
getPath
-
setLineFilter
-
setLineTransformer
-
getFile
- Throws:
SVNException
-
reset
Reset a generic stream back to its origin. E.g. On a file this would be implemented as a seek to position 0). This function returns a #SVN_ERR_STREAM_RESET_NOT_SUPPORTED error when the stream doesn't implement resetting.- Throws:
IOException
SVNException
-
close
- Throws:
IOException
-
isEOF
- Throws:
IOException
SVNException
-
getSeekPosition
- Throws:
SVNException
IOException
-
setSeekPosition
- Throws:
SVNException
IOException
-
checkPos
- Throws:
SVNException
-
isPosValid
private boolean isPosValid(long pos) -
write
- Throws:
SVNException
IOException
-
write
- Throws:
SVNException
IOException
-
tryWrite
- Throws:
SVNException
IOException
-
readLineWithEol
public boolean readLineWithEol(StringBuffer lineBuf, StringBuffer eolStr) throws IOException, SVNException - Throws:
IOException
SVNException
-
readLine
- Throws:
IOException
SVNException
-
readLine
- Throws:
IOException
SVNException
-
readLine
private boolean readLine(StringBuffer input, StringBuffer eolStr, boolean detectEol) throws IOException, SVNException - Throws:
IOException
SVNException
-