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

## Interface DiffWriter

- All Superinterfaces:
    AutoCloseable, Closeable
  All Known Implementing Classes:
    DebugDiffWriter, GDiffWriter

      public interface DiffWriter
      extends 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 IOException

      Add a GDIFF copy instruction.
      Throws:
        `IOException`

    - #### addData

          void addData(byte b)
                       throws IOException

      Add a GDIFF data instruction. Implementors should buffer the data.
      Throws:
        `IOException`

    - #### flush

          void flush()
                     throws IOException

      Flushes to output, e.g. any data added.
      Throws:
        `IOException`

    - #### close

          void close()
                     throws IOException

      Closes this stream. Note that `DiffWriter` will invoke this method at the end.
      Specified by:
        `close` in interface `AutoCloseable`
      Specified by:
        `close` in interface `Closeable`
      Throws:
        `IOException`