Class SVNPatchFileStream
java.lang.Object
org.tmatesoft.svn.core.internal.wc.patch.SVNPatchFileStream
- Version:
- 1.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate RandomAccessFileprivate Fileprivate longprivate boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSVNPatchFileStream(File path, boolean write) privateSVNPatchFileStream(File path, boolean write, long start, long end) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckPos(long pos) voidclose()private RandomAccessFilegetFile()getPath()longbooleanisEOF()private booleanisPosValid(long pos) static SVNPatchFileStreamopenForWrite(File path) static SVNPatchFileStreamopenRangeReadOnly(File path, long start, long end) static SVNPatchFileStreamopenReadOnly(File path) booleanreadLine(StringBuffer lineBuf) booleanreadLine(StringBuffer lineBuf, String eolStr) private booleanreadLine(StringBuffer input, StringBuffer eolStr, boolean detectEol) booleanreadLineWithEol(StringBuffer lineBuf, StringBuffer eolStr) voidreset()Reset a generic stream back to its origin.voidvoidsetLineTransformer(SVNPatchFileStream.SVNPatchFileLineTransformer lineTransfomer) voidsetSeekPosition(long pos) voidtryWrite(StringBuffer lineBuf) voidvoidwrite(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:
IOExceptionSVNException
-
openRangeReadOnly
public static SVNPatchFileStream openRangeReadOnly(File path, long start, long end) throws IOException, SVNException - Throws:
IOExceptionSVNException
-
openForWrite
- Throws:
IOExceptionSVNException
-
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:
IOExceptionSVNException
-
close
- Throws:
IOException
-
isEOF
- Throws:
IOExceptionSVNException
-
getSeekPosition
- Throws:
SVNExceptionIOException
-
setSeekPosition
- Throws:
SVNExceptionIOException
-
checkPos
- Throws:
SVNException
-
isPosValid
private boolean isPosValid(long pos) -
write
- Throws:
SVNExceptionIOException
-
write
- Throws:
SVNExceptionIOException
-
tryWrite
- Throws:
SVNExceptionIOException
-
readLineWithEol
public boolean readLineWithEol(StringBuffer lineBuf, StringBuffer eolStr) throws IOException, SVNException - Throws:
IOExceptionSVNException
-
readLine
- Throws:
IOExceptionSVNException
-
readLine
- Throws:
IOExceptionSVNException
-
readLine
private boolean readLine(StringBuffer input, StringBuffer eolStr, boolean detectEol) throws IOException, SVNException - Throws:
IOExceptionSVNException
-