From 877312184c472d9845e5ef1008bc538f4634059f Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Thu, 10 Aug 2017 18:50:56 +0300 Subject: fix missing source folder --- .../nothome/delta/ByteBufferSeekableSource.html | 356 ------------- .../fml/repackage/com/nothome/delta/Checksum.html | 346 ------------- .../com/nothome/delta/DebugDiffWriter.html | 350 ------------- .../fml/repackage/com/nothome/delta/Delta.html | 451 ---------------- .../repackage/com/nothome/delta/DiffWriter.html | 286 ----------- .../repackage/com/nothome/delta/GDiffPatcher.html | 355 ------------- .../repackage/com/nothome/delta/GDiffWriter.html | 564 --------------------- .../com/nothome/delta/PatchException.html | 273 ---------- .../delta/RandomAccessFileSeekableSource.html | 358 ------------- .../com/nothome/delta/SeekableSource.html | 250 --------- .../repackage/com/nothome/delta/package-frame.html | 34 -- .../com/nothome/delta/package-summary.html | 210 -------- .../repackage/com/nothome/delta/package-tree.html | 158 ------ 13 files changed, 3991 deletions(-) delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/ByteBufferSeekableSource.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/Checksum.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/DebugDiffWriter.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/Delta.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/DiffWriter.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/GDiffPatcher.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/GDiffWriter.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/PatchException.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/RandomAccessFileSeekableSource.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/SeekableSource.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-frame.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-summary.html delete mode 100644 javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-tree.html (limited to 'javadoc/cpw/mods/fml/repackage/com') diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/ByteBufferSeekableSource.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/ByteBufferSeekableSource.html deleted file mode 100644 index cfbd982..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/ByteBufferSeekableSource.html +++ /dev/null @@ -1,356 +0,0 @@ - - - - - -ByteBufferSeekableSource (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Class ByteBufferSeekableSource

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    SeekableSource, java.io.Closeable, java.lang.AutoCloseable
    -
    -
    -
    -
    public class ByteBufferSeekableSource
    -extends java.lang.Object
    -implements SeekableSource
    -
    Wraps a byte buffer as a source
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - - -
      Constructors 
      Constructor and Description
      ByteBufferSeekableSource(byte[] source) -
      Constructs a new ByteArraySeekableSource.
      -
      ByteBufferSeekableSource(java.nio.ByteBuffer bb) -
      Constructs a new ByteArraySeekableSource.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidclose() 
      intread(java.nio.ByteBuffer dest) -
      Reads up to Buffer.remaining() bytes from the source, - returning the number of bytes read, or -1 if no bytes were read - and EOF was reached.
      -
      voidseek(long pos) -
      Sets the position for the next SeekableSource.read(ByteBuffer).
      -
      java.lang.StringtoString() -
      Returns a debug String.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ByteBufferSeekableSource

        -
        public ByteBufferSeekableSource(byte[] source)
        -
        Constructs a new ByteArraySeekableSource.
        -
      • -
      - - - -
        -
      • -

        ByteBufferSeekableSource

        -
        public ByteBufferSeekableSource(java.nio.ByteBuffer bb)
        -
        Constructs a new ByteArraySeekableSource.
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - - - - - -
        -
      • -

        read

        -
        public int read(java.nio.ByteBuffer dest)
        -         throws java.io.IOException
        -
        Description copied from interface: SeekableSource
        -
        Reads up to Buffer.remaining() bytes from the source, - returning the number of bytes read, or -1 if no bytes were read - and EOF was reached.
        -
        -
        Specified by:
        -
        read in interface SeekableSource
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        close

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

        toString

        -
        public java.lang.String toString()
        -
        Returns a debug String.
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/Checksum.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/Checksum.html deleted file mode 100644 index e0f3318..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/Checksum.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - -Checksum (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Class Checksum

-
-
- -
-
    -
  • -
    -
    -
    public class Checksum
    -extends java.lang.Object
    -
    Checksum computation class.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      Checksum(SeekableSource source, - int chunkSize) -
      Initialize checksums for source.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      intfindChecksumIndex(long hashf) -
      Finds the index of a checksum.
      -
      static char[]getSingleHash() -
      256 random hash values.
      -
      static longincrementChecksum(long checksum, - byte out, - byte in, - int chunkSize) -
      Increments a checksum.
      -
      static longqueryChecksum(java.nio.ByteBuffer bb, - int len) -
      Finds the checksum computed from the buffer.
      -
      java.lang.StringtoString() -
      Returns a debug String.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Checksum

        -
        public Checksum(SeekableSource source,
        -        int chunkSize)
        -         throws java.io.IOException
        -
        Initialize checksums for source. The checksum for the chunkSize bytes at offset - chunkSize * i is inserted into a hash map.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        queryChecksum

        -
        public static long queryChecksum(java.nio.ByteBuffer bb,
        -                 int len)
        -
        Finds the checksum computed from the buffer. - Marks, gets, then resets the buffer.
        -
      • -
      - - - -
        -
      • -

        incrementChecksum

        -
        public static long incrementChecksum(long checksum,
        -                     byte out,
        -                     byte in,
        -                     int chunkSize)
        -
        Increments a checksum.
        -
        Parameters:
        checksum - initial checksum
        out - byte leaving view
        in - byte entering view
        chunkSize - size of chunks
        -
        Returns:
        new checksum
        -
      • -
      - - - -
        -
      • -

        getSingleHash

        -
        public static char[] getSingleHash()
        -
        256 random hash values.
        -
      • -
      - - - -
        -
      • -

        findChecksumIndex

        -
        public int findChecksumIndex(long hashf)
        -
        Finds the index of a checksum.
        -
      • -
      - - - -
        -
      • -

        toString

        -
        public java.lang.String toString()
        -
        Returns a debug String.
        -
        -
        Overrides:
        -
        toString in class java.lang.Object
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/DebugDiffWriter.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/DebugDiffWriter.html deleted file mode 100644 index 4685a23..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/DebugDiffWriter.html +++ /dev/null @@ -1,350 +0,0 @@ - - - - - -DebugDiffWriter (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Class DebugDiffWriter

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    DiffWriter, java.io.Closeable, java.lang.AutoCloseable
    -
    -
    -
    -
    public class DebugDiffWriter
    -extends java.lang.Object
    -implements DiffWriter
    -
    For debugging patch generation.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      DebugDiffWriter() -
      Constructs a new DebugDiffWriter.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidaddCopy(long offset, - int length) -
      Add a GDIFF copy instruction.
      -
      voidaddData(byte b) -
      Add a GDIFF data instruction.
      -
      voidclose() -
      Closes this stream.
      -
      voidflush() -
      Flushes to output, e.g.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        DebugDiffWriter

        -
        public DebugDiffWriter()
        -
        Constructs a new DebugDiffWriter.
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        addCopy

        -
        public void addCopy(long offset,
        -           int length)
        -             throws java.io.IOException
        -
        Description copied from interface: DiffWriter
        -
        Add a GDIFF copy instruction.
        -
        -
        Specified by:
        -
        addCopy in interface DiffWriter
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        addData

        -
        public void addData(byte b)
        -             throws java.io.IOException
        -
        Description copied from interface: DiffWriter
        -
        Add a GDIFF data instruction. - Implementors should buffer the data.
        -
        -
        Specified by:
        -
        addData in interface DiffWriter
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        flush

        -
        public void flush()
        -           throws java.io.IOException
        -
        Description copied from interface: DiffWriter
        -
        Flushes to output, e.g. any data added.
        -
        -
        Specified by:
        -
        flush in interface DiffWriter
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        close

        -
        public void close()
        -           throws java.io.IOException
        -
        Description copied from interface: DiffWriter
        -
        Closes this stream. - Note that DiffWriter will invoke this method at the end.
        -
        -
        Specified by:
        -
        close in interface DiffWriter
        -
        Specified by:
        -
        close in interface java.io.Closeable
        -
        Specified by:
        -
        close in interface java.lang.AutoCloseable
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/Delta.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/Delta.html deleted file mode 100644 index 2d4bb80..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/Delta.html +++ /dev/null @@ -1,451 +0,0 @@ - - - - - -Delta (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Class Delta

-
-
- -
-
    -
  • -
    -
    -
    public class Delta
    -extends java.lang.Object
    -
    Class for computing deltas against a source. - The source file is read by blocks and a hash is computed per block. - Then the target is scanned for matching blocks. -

    - This class is not thread safe. Use one instance per thread. -

    - This class should support files over 4GB in length, although you must - use a larger checksum size, such as 1K, as all checksums use "int" indexing. - Newer versions may eventually support paging in/out of checksums.

    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Summary

      - - - - - - - - - - -
      Fields 
      Modifier and TypeField and Description
      static intDEFAULT_CHUNK_SIZE -
      Default size of 16.
      -
      -
    • -
    - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      Delta() -
      Constructs a new Delta.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      byte[]compute(byte[] source, - byte[] target) -
      Compares the source bytes with target bytes, returning output.
      -
      voidcompute(byte[] source, - byte[] target, - java.io.OutputStream output) -
      Compares the source bytes with target bytes, writing to output.
      -
      voidcompute(byte[] sourceBytes, - java.io.InputStream inputStream, - DiffWriter diffWriter) -
      Compares the source bytes with target input, writing to output.
      -
      voidcompute(java.io.File sourceFile, - java.io.File targetFile, - DiffWriter output) -
      Compares the source file with a target file, writing to output.
      -
      voidcompute(SeekableSource seekSource, - java.io.InputStream targetIS, - DiffWriter output) -
      Compares the source with a target, writing to output.
      -
      static voidmain(java.lang.String[] argv) -
      Creates a patch using file names.
      -
      voidsetChunkSize(int size) -
      Sets the chunk size used.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        DEFAULT_CHUNK_SIZE

        -
        public static final int DEFAULT_CHUNK_SIZE
        -
        Default size of 16. - For "Lorem ipsum" text files (see the tests) the ideal size is about 14. - Any smaller and the patch size becomes actually be larger. -

        - Use a size like 64 or 128 for large files.

        -
        See Also:
        Constant Field Values
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Delta

        -
        public Delta()
        -
        Constructs a new Delta. - In the future, additional constructor arguments will set the algorithm details.
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        setChunkSize

        -
        public void setChunkSize(int size)
        -
        Sets the chunk size used. - Larger chunks are faster and use less memory, but create larger patches - as well.
        -
        Parameters:
        size -
        -
      • -
      - - - -
        -
      • -

        compute

        -
        public void compute(byte[] source,
        -           byte[] target,
        -           java.io.OutputStream output)
        -             throws java.io.IOException
        -
        Compares the source bytes with target bytes, writing to output.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        compute

        -
        public byte[] compute(byte[] source,
        -             byte[] target)
        -               throws java.io.IOException
        -
        Compares the source bytes with target bytes, returning output.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        compute

        -
        public void compute(byte[] sourceBytes,
        -           java.io.InputStream inputStream,
        -           DiffWriter diffWriter)
        -             throws java.io.IOException
        -
        Compares the source bytes with target input, writing to output.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        compute

        -
        public void compute(java.io.File sourceFile,
        -           java.io.File targetFile,
        -           DiffWriter output)
        -             throws java.io.IOException
        -
        Compares the source file with a target file, writing to output.
        -
        Parameters:
        output - will be closed
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        compute

        -
        public void compute(SeekableSource seekSource,
        -           java.io.InputStream targetIS,
        -           DiffWriter output)
        -             throws java.io.IOException
        -
        Compares the source with a target, writing to output.
        -
        Parameters:
        output - will be closed
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        main

        -
        public static void main(java.lang.String[] argv)
        -                 throws java.lang.Exception
        -
        Creates a patch using file names.
        -
        Throws:
        -
        java.lang.Exception
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/DiffWriter.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/DiffWriter.html deleted file mode 100644 index 88e6728..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/DiffWriter.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - -DiffWriter (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Interface DiffWriter

-
-
-
-
    -
  • -
    -
    All Superinterfaces:
    -
    java.lang.AutoCloseable, java.io.Closeable
    -
    -
    -
    All Known Implementing Classes:
    -
    DebugDiffWriter, GDiffWriter
    -
    -
    -
    -
    public interface DiffWriter
    -extends java.io.Closeable
    -
    Interface for DIFF writers.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidaddCopy(long offset, - int length) -
      Add a GDIFF copy instruction.
      -
      voidaddData(byte b) -
      Add a GDIFF data instruction.
      -
      voidclose() -
      Closes this stream.
      -
      voidflush() -
      Flushes to output, e.g.
      -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        addCopy

        -
        void addCopy(long offset,
        -           int length)
        -             throws java.io.IOException
        -
        Add a GDIFF copy instruction.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        addData

        -
        void addData(byte b)
        -             throws java.io.IOException
        -
        Add a GDIFF data instruction. - Implementors should buffer the data.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        flush

        -
        void flush()
        -           throws java.io.IOException
        -
        Flushes to output, e.g. any data added.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        close

        -
        void close()
        -           throws java.io.IOException
        -
        Closes this stream. - Note that DiffWriter will invoke this method at the end.
        -
        -
        Specified by:
        -
        close in interface java.lang.AutoCloseable
        -
        Specified by:
        -
        close in interface java.io.Closeable
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/GDiffPatcher.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/GDiffPatcher.html deleted file mode 100644 index fbe65ba..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/GDiffPatcher.html +++ /dev/null @@ -1,355 +0,0 @@ - - - - - -GDiffPatcher (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Class GDiffPatcher

-
-
- -
-
    -
  • -
    -
    -
    public class GDiffPatcher
    -extends java.lang.Object
    -
    This class patches an input file with a GDIFF patch file. - - The patch file follows the GDIFF file specification available at - - http://www.w3.org/TR/NOTE-gdiff-19970901.html.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      GDiffPatcher() -
      Constructs a new GDiffPatcher.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      static voidmain(java.lang.String[] argv) -
      Simple command line tool to patch a file.
      -
      byte[]patch(byte[] source, - byte[] patch) -
      Patches in memory, returning the patch result.
      -
      voidpatch(byte[] source, - java.io.InputStream patch, - java.io.OutputStream output) -
      Patches to an output stream.
      -
      voidpatch(java.io.File sourceFile, - java.io.File patchFile, - java.io.File outputFile) -
      Patches to an output file.
      -
      voidpatch(SeekableSource source, - java.io.InputStream patch, - java.io.OutputStream out) -
      Patches to an output stream.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        GDiffPatcher

        -
        public GDiffPatcher()
        -
        Constructs a new GDiffPatcher.
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        patch

        -
        public void patch(java.io.File sourceFile,
        -         java.io.File patchFile,
        -         java.io.File outputFile)
        -           throws java.io.IOException
        -
        Patches to an output file.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        patch

        -
        public void patch(byte[] source,
        -         java.io.InputStream patch,
        -         java.io.OutputStream output)
        -           throws java.io.IOException
        -
        Patches to an output stream.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        patch

        -
        public byte[] patch(byte[] source,
        -           byte[] patch)
        -             throws java.io.IOException
        -
        Patches in memory, returning the patch result.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        patch

        -
        public void patch(SeekableSource source,
        -         java.io.InputStream patch,
        -         java.io.OutputStream out)
        -           throws java.io.IOException
        -
        Patches to an output stream.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        main

        -
        public static void main(java.lang.String[] argv)
        -
        Simple command line tool to patch a file.
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/GDiffWriter.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/GDiffWriter.html deleted file mode 100644 index 8761670..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/GDiffWriter.html +++ /dev/null @@ -1,564 +0,0 @@ - - - - - -GDiffWriter (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Class GDiffWriter

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    DiffWriter, java.io.Closeable, java.lang.AutoCloseable
    -
    -
    -
    -
    public class GDiffWriter
    -extends java.lang.Object
    -implements DiffWriter
    -
    Outputs a diff following the GDIFF file specification available at - http://www.w3.org/TR/NOTE-gdiff-19970901.html.
    -
  • -
-
-
-
    -
  • - - - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - - -
      Constructors 
      Constructor and Description
      GDiffWriter(java.io.DataOutputStream os) -
      Constructs a new GDiffWriter.
      -
      GDiffWriter(java.io.OutputStream output) -
      Constructs a new GDiffWriter.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidaddCopy(long offset, - int length) -
      Add a GDIFF copy instruction.
      -
      voidaddData(byte b) -
      Adds a data byte.
      -
      voidclose() -
      Writes the final EOF byte, closes the underlying stream.
      -
      voidflush() -
      Flushes accumulated data bytes, if any.
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - - - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        GDiffWriter

        -
        public GDiffWriter(java.io.DataOutputStream os)
        -            throws java.io.IOException
        -
        Constructs a new GDiffWriter.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        GDiffWriter

        -
        public GDiffWriter(java.io.OutputStream output)
        -            throws java.io.IOException
        -
        Constructs a new GDiffWriter.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        addCopy

        -
        public void addCopy(long offset,
        -           int length)
        -             throws java.io.IOException
        -
        Description copied from interface: DiffWriter
        -
        Add a GDIFF copy instruction.
        -
        -
        Specified by:
        -
        addCopy in interface DiffWriter
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        addData

        -
        public void addData(byte b)
        -             throws java.io.IOException
        -
        Adds a data byte.
        -
        -
        Specified by:
        -
        addData in interface DiffWriter
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        flush

        -
        public void flush()
        -           throws java.io.IOException
        -
        Flushes accumulated data bytes, if any.
        -
        -
        Specified by:
        -
        flush in interface DiffWriter
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        close

        -
        public void close()
        -           throws java.io.IOException
        -
        Writes the final EOF byte, closes the underlying stream.
        -
        -
        Specified by:
        -
        close in interface DiffWriter
        -
        Specified by:
        -
        close in interface java.io.Closeable
        -
        Specified by:
        -
        close in interface java.lang.AutoCloseable
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/PatchException.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/PatchException.html deleted file mode 100644 index 46e4ffb..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/PatchException.html +++ /dev/null @@ -1,273 +0,0 @@ - - - - - -PatchException (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Class PatchException

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    java.io.Serializable
    -
    -
    -
    -
    public class PatchException
    -extends java.io.IOException
    -
    Thrown when a patch is invalid.
    -
    See Also:
    Serialized Form
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - - -
      Constructors 
      Constructor and Description
      PatchException() -
      Creates a new instance of PatchException without detail message.
      -
      PatchException(java.lang.String msg) -
      Constructs an instance of PatchException with the specified detail message.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      -
        -
      • - - -

        Methods inherited from class java.lang.Throwable

        -addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        PatchException

        -
        public PatchException()
        -
        Creates a new instance of PatchException without detail message.
        -
      • -
      - - - -
        -
      • -

        PatchException

        -
        public PatchException(java.lang.String msg)
        -
        Constructs an instance of PatchException with the specified detail message.
        -
        Parameters:
        msg - the detail message.
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/RandomAccessFileSeekableSource.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/RandomAccessFileSeekableSource.html deleted file mode 100644 index e60aa30..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/RandomAccessFileSeekableSource.html +++ /dev/null @@ -1,358 +0,0 @@ - - - - - -RandomAccessFileSeekableSource (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Class RandomAccessFileSeekableSource

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    SeekableSource, java.io.Closeable, java.lang.AutoCloseable
    -
    -
    -
    -
    public class RandomAccessFileSeekableSource
    -extends java.lang.Object
    -implements SeekableSource
    -
    Wraps a random access file.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      RandomAccessFileSeekableSource(java.io.RandomAccessFile raf) -
      Constructs a new RandomAccessFileSeekableSource.
      -
      -
    • -
    - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      voidclose() 
      longlength() 
      intread(byte[] b, - int off, - int len) 
      intread(java.nio.ByteBuffer bb) -
      Reads up to Buffer.remaining() bytes from the source, - returning the number of bytes read, or -1 if no bytes were read - and EOF was reached.
      -
      voidseek(long pos) -
      Sets the position for the next SeekableSource.read(ByteBuffer).
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        RandomAccessFileSeekableSource

        -
        public RandomAccessFileSeekableSource(java.io.RandomAccessFile raf)
        -
        Constructs a new RandomAccessFileSeekableSource.
        -
        Parameters:
        raf -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - - - - - -
        -
      • -

        read

        -
        public int read(byte[] b,
        -       int off,
        -       int len)
        -         throws java.io.IOException
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        length

        -
        public long length()
        -            throws java.io.IOException
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        close

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

        read

        -
        public int read(java.nio.ByteBuffer bb)
        -         throws java.io.IOException
        -
        Description copied from interface: SeekableSource
        -
        Reads up to Buffer.remaining() bytes from the source, - returning the number of bytes read, or -1 if no bytes were read - and EOF was reached.
        -
        -
        Specified by:
        -
        read in interface SeekableSource
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/SeekableSource.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/SeekableSource.html deleted file mode 100644 index b7c3fe4..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/SeekableSource.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - -SeekableSource (Forge API) - - - - - - - -
- - - - - -
- - - -
-
cpw.mods.fml.repackage.com.nothome.delta
-

Interface SeekableSource

-
-
-
-
    -
  • -
    -
    All Superinterfaces:
    -
    java.lang.AutoCloseable, java.io.Closeable
    -
    -
    -
    All Known Implementing Classes:
    -
    ByteBufferSeekableSource, RandomAccessFileSeekableSource
    -
    -
    -
    -
    public interface SeekableSource
    -extends java.io.Closeable
    -
    For sources of random-access data, such as RandomAccessFile.
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      intread(java.nio.ByteBuffer bb) -
      Reads up to Buffer.remaining() bytes from the source, - returning the number of bytes read, or -1 if no bytes were read - and EOF was reached.
      -
      voidseek(long pos) -
      Sets the position for the next read(ByteBuffer).
      -
      -
        -
      • - - -

        Methods inherited from interface java.io.Closeable

        -close
      • -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        seek

        -
        void seek(long pos)
        -          throws java.io.IOException
        -
        Sets the position for the next read(ByteBuffer).
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      - - - -
        -
      • -

        read

        -
        int read(java.nio.ByteBuffer bb)
        -         throws java.io.IOException
        -
        Reads up to Buffer.remaining() bytes from the source, - returning the number of bytes read, or -1 if no bytes were read - and EOF was reached.
        -
        Throws:
        -
        java.io.IOException
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-frame.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-frame.html deleted file mode 100644 index 6080744..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - -cpw.mods.fml.repackage.com.nothome.delta (Forge API) - - - - -

cpw.mods.fml.repackage.com.nothome.delta

-
-

Interfaces

- -

Classes

- -

Exceptions

- -
- - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-summary.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-summary.html deleted file mode 100644 index e72f335..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-summary.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - -cpw.mods.fml.repackage.com.nothome.delta (Forge API) - - - - - - - -
- - - - - -
- - -
-

Package cpw.mods.fml.repackage.com.nothome.delta

-
-
- -
- -
- - - - - -
- - - - diff --git a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-tree.html b/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-tree.html deleted file mode 100644 index 45ab23b..0000000 --- a/javadoc/cpw/mods/fml/repackage/com/nothome/delta/package-tree.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - -cpw.mods.fml.repackage.com.nothome.delta Class Hierarchy (Forge API) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package cpw.mods.fml.repackage.com.nothome.delta

-Package Hierarchies: - -
-
-

Class Hierarchy

- -

Interface Hierarchy

- -
- -
- - - - - -
- - - - -- cgit v1.2.3