Class SVNPatchFileStream
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.patch.SVNPatchFileStream
-
public class SVNPatchFileStream extends java.lang.Object- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSVNPatchFileStream.SVNPatchFileLineFilterstatic interfaceSVNPatchFileStream.SVNPatchFileLineTransformer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.FilegetPath()longgetSeekPosition()booleanisEOF()static SVNPatchFileStreamopenForWrite(java.io.File path)static SVNPatchFileStreamopenRangeReadOnly(java.io.File path, long start, long end)static SVNPatchFileStreamopenReadOnly(java.io.File path)booleanreadLine(java.lang.StringBuffer lineBuf)booleanreadLine(java.lang.StringBuffer lineBuf, java.lang.String eolStr)booleanreadLineWithEol(java.lang.StringBuffer lineBuf, java.lang.StringBuffer eolStr)voidreset()Reset a generic stream back to its origin.voidsetLineFilter(SVNPatchFileStream.SVNPatchFileLineFilter lineFilter)voidsetLineTransformer(SVNPatchFileStream.SVNPatchFileLineTransformer lineTransfomer)voidsetSeekPosition(long pos)voidtryWrite(java.lang.StringBuffer lineBuf)voidwrite(java.lang.String str)voidwrite(java.lang.StringBuffer str)
-
-
-
Method Detail
-
openReadOnly
public static SVNPatchFileStream openReadOnly(java.io.File path) throws java.io.IOException, SVNException
- Throws:
java.io.IOExceptionSVNException
-
openRangeReadOnly
public static SVNPatchFileStream openRangeReadOnly(java.io.File path, long start, long end) throws java.io.IOException, SVNException
- Throws:
java.io.IOExceptionSVNException
-
openForWrite
public static SVNPatchFileStream openForWrite(java.io.File path) throws java.io.IOException, SVNException
- Throws:
java.io.IOExceptionSVNException
-
getPath
public java.io.File getPath()
-
setLineFilter
public void setLineFilter(SVNPatchFileStream.SVNPatchFileLineFilter lineFilter)
-
setLineTransformer
public void setLineTransformer(SVNPatchFileStream.SVNPatchFileLineTransformer lineTransfomer)
-
reset
public void reset() throws java.io.IOException, SVNExceptionReset 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:
java.io.IOExceptionSVNException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
isEOF
public boolean isEOF() throws java.io.IOException, SVNException- Throws:
java.io.IOExceptionSVNException
-
getSeekPosition
public long getSeekPosition() throws SVNException, java.io.IOException- Throws:
SVNExceptionjava.io.IOException
-
setSeekPosition
public void setSeekPosition(long pos) throws SVNException, java.io.IOException- Throws:
SVNExceptionjava.io.IOException
-
write
public void write(java.lang.String str) throws SVNException, java.io.IOException- Throws:
SVNExceptionjava.io.IOException
-
write
public void write(java.lang.StringBuffer str) throws SVNException, java.io.IOException- Throws:
SVNExceptionjava.io.IOException
-
tryWrite
public void tryWrite(java.lang.StringBuffer lineBuf) throws SVNException, java.io.IOException- Throws:
SVNExceptionjava.io.IOException
-
readLineWithEol
public boolean readLineWithEol(java.lang.StringBuffer lineBuf, java.lang.StringBuffer eolStr) throws java.io.IOException, SVNException- Throws:
java.io.IOExceptionSVNException
-
readLine
public boolean readLine(java.lang.StringBuffer lineBuf) throws java.io.IOException, SVNException- Throws:
java.io.IOExceptionSVNException
-
readLine
public boolean readLine(java.lang.StringBuffer lineBuf, java.lang.String eolStr) throws java.io.IOException, SVNException- Throws:
java.io.IOExceptionSVNException
-
-