Interface Binary


public interface Binary
Binary data.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases all resources associated with this binary and informs the implementation that these resources may now be reclaimed.
    long
     
    Returns an InputStream representation of this binary.
  • Method Details

    • getStream

      InputStream getStream()
      Returns an InputStream representation of this binary. Each call to getStream() returns a new stream. The caller is responsible for calling close() on the returned stream.
      Returns:
      A stream representation of this binary.
      Throws:
      IllegalStateException - if dispose() has already been called.
      WebFileException - if another error occurs.
    • getSize

      long getSize()
      Returns:
      the size of this binary in bytes.
      Throws:
      IllegalStateException - if dispose() has already been called.
      WebFileException - if another error occurs.
    • dispose

      void dispose()
      Releases all resources associated with this binary and informs the implementation that these resources may now be reclaimed. An application should call this method when it is finished with the binary object.