Class FSOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, ISVNDeltaConsumer

    public class FSOutputStream
    extends java.io.OutputStream
    implements ISVNDeltaConsumer
    Version:
    1.3
    Author:
    TMate Software Ltd.
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException
      • closeStreams

        public void closeStreams()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • textDeltaChunk

        public java.io.OutputStream textDeltaChunk​(java.lang.String path,
                                                   SVNDiffWindow diffWindow)
                                            throws SVNException
        Description copied from interface: ISVNDeltaConsumer
        Collects a next delta chunk. The return type is nomore relevant and is left only for backward compatibility. So, the return value may be just null. Otherwise if it's not null, the stream will be immediately closed.

        If there are more than one windows for the file, this method is called several times.

        Specified by:
        textDeltaChunk in interface ISVNDeltaConsumer
        Parameters:
        path - a file path relative to the edit root directory
        diffWindow - a next diff window
        Returns:
        an output stream
        Throws:
        SVNException
      • applyTextDelta

        public void applyTextDelta​(java.lang.String path,
                                   java.lang.String baseChecksum)
                            throws SVNException
        Description copied from interface: ISVNDeltaConsumer
        Starts applying text delta(s) to an opened file.
        Specified by:
        applyTextDelta in interface ISVNDeltaConsumer
        Parameters:
        path - a file path relative to the edit root directory
        baseChecksum - an MD5 checksum for the base file contents (before the file is changed)
        Throws:
        SVNException - if the calculated base file checksum didn't match the expected baseChecksum