Class QDiffSequenceGenerator

    • Field Detail

      • header

        private final java.lang.String header
      • myProperties

        private java.util.Map myProperties
    • Constructor Detail

      • QDiffSequenceGenerator

        protected QDiffSequenceGenerator​(java.util.Map properties,
                                         java.lang.String header)
    • Method Detail

      • generateBinaryDiff

        public void generateBinaryDiff​(java.io.InputStream left,
                                       java.io.InputStream right,
                                       java.lang.String encoding,
                                       java.io.Writer output)
                                throws java.io.IOException
        Specified by:
        generateBinaryDiff in interface QDiffGenerator
        Throws:
        java.io.IOException
      • generateTextDiff

        public void generateTextDiff​(java.io.InputStream left,
                                     java.io.InputStream right,
                                     java.lang.String encoding,
                                     java.io.Writer output)
                              throws java.io.IOException
        Specified by:
        generateTextDiff in interface QDiffGenerator
        Throws:
        java.io.IOException
      • generateTextDiff

        public void generateTextDiff​(QSequenceLineRAData left,
                                     QSequenceLineRAData right,
                                     java.io.OutputStream output)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • generateTextDiff

        public void generateTextDiff​(java.io.RandomAccessFile left,
                                     java.io.RandomAccessFile right,
                                     java.lang.String encoding,
                                     java.io.Writer output)
                              throws java.io.IOException
        Specified by:
        generateTextDiff in interface QDiffGenerator
        Throws:
        java.io.IOException
      • generateTextDiff

        public void generateTextDiff​(java.io.RandomAccessFile left,
                                     java.io.RandomAccessFile right,
                                     java.io.OutputStream output)
                              throws java.io.IOException
        Specified by:
        generateTextDiff in interface QDiffGenerator
        Throws:
        java.io.IOException
      • getProperties

        protected java.util.Map getProperties()
      • getHunkDelimiter

        protected java.lang.String getHunkDelimiter()
      • getEOL

        protected java.lang.String getEOL()
      • getGutter

        protected int getGutter()
      • printLine

        protected java.lang.String printLine​(QSequenceLine line,
                                             java.lang.String encoding)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        protected void println​(java.io.Writer output)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        protected void println​(java.io.OutputStream output)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        protected void println​(java.lang.String str,
                               java.io.Writer output)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        protected void println​(java.lang.String str,
                               java.io.OutputStream output)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        protected void print​(java.lang.String str,
                             java.io.Writer output)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        protected void print​(java.lang.String str,
                             java.io.OutputStream output)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • combineBlocks

        private static java.util.List combineBlocks​(java.util.List blocksList,
                                                    int gutter)