Class SVNPatchFileStream


  • public class SVNPatchFileStream
    extends java.lang.Object
    Version:
    1.3
    • Constructor Detail

      • SVNPatchFileStream

        private SVNPatchFileStream​(java.io.File path,
                                   boolean write,
                                   long start,
                                   long end)
      • SVNPatchFileStream

        private SVNPatchFileStream​(java.io.File path,
                                   boolean write)
    • Method Detail

      • getPath

        public java.io.File getPath()
      • reset

        public void reset()
                   throws java.io.IOException,
                          SVNException
        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:
        java.io.IOException
        SVNException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getSeekPosition

        public long getSeekPosition()
                             throws SVNException,
                                    java.io.IOException
        Throws:
        SVNException
        java.io.IOException
      • setSeekPosition

        public void setSeekPosition​(long pos)
                             throws SVNException,
                                    java.io.IOException
        Throws:
        SVNException
        java.io.IOException
      • isPosValid

        private boolean isPosValid​(long pos)
      • write

        public void write​(java.lang.String str)
                   throws SVNException,
                          java.io.IOException
        Throws:
        SVNException
        java.io.IOException
      • write

        public void write​(java.lang.StringBuffer str)
                   throws SVNException,
                          java.io.IOException
        Throws:
        SVNException
        java.io.IOException
      • tryWrite

        public void tryWrite​(java.lang.StringBuffer lineBuf)
                      throws SVNException,
                             java.io.IOException
        Throws:
        SVNException
        java.io.IOException
      • readLineWithEol

        public boolean readLineWithEol​(java.lang.StringBuffer lineBuf,
                                       java.lang.StringBuffer eolStr)
                                throws java.io.IOException,
                                       SVNException
        Throws:
        java.io.IOException
        SVNException
      • readLine

        public boolean readLine​(java.lang.StringBuffer lineBuf)
                         throws java.io.IOException,
                                SVNException
        Throws:
        java.io.IOException
        SVNException
      • readLine

        public boolean readLine​(java.lang.StringBuffer lineBuf,
                                java.lang.String eolStr)
                         throws java.io.IOException,
                                SVNException
        Throws:
        java.io.IOException
        SVNException
      • readLine

        private boolean readLine​(java.lang.StringBuffer input,
                                 java.lang.StringBuffer eolStr,
                                 boolean detectEol)
                          throws java.io.IOException,
                                 SVNException
        Throws:
        java.io.IOException
        SVNException