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 Type | Method and Description
    --- | ---
    `void` | `addCopy(long offset, int length)` Add a GDIFF copy instruction.
    `void` | `addData(byte b)` Add a GDIFF data instruction.
    `void` | `close()` Closes this stream.
    `void` | `flush()` 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`