i2p.susi.util

## Interface Buffer

- All Known Implementing Classes:
    FileBuffer, GzipFileBuffer, MemoryBuffer, OutputStreamBuffer, ReadBuffer

      public interface Buffer

  Base interface for data buffers. Data access is primarily through streams, with additional methods available in subclasses.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `getInputStream()`
    `int` | `getLength()`
    `int` | `getOffset()`
    `OutputStream` | `getOutputStream()`
    `void` | `readComplete(boolean success)` Top-level reader MUST call this to close the input stream.
    `void` | `writeComplete(boolean success)` Writer MUST call this when done.

- - ### Method Detail

    - #### getInputStream

          InputStream getInputStream()
                              throws IOException

      Throws:
        `IOException`

    - #### getLength

          int getLength()

    - #### getOffset

          int getOffset()

    - #### getOutputStream

          OutputStream getOutputStream()
                                throws IOException

      Throws:
        `IOException`

    - #### readComplete

          void readComplete(boolean success)

      Top-level reader MUST call this to close the input stream.

    - #### writeComplete

          void writeComplete(boolean success)

      Writer MUST call this when done.
      Parameters:
        `success` - if false, deletes any resources