Interface BinaryReadable

  • All Known Implementing Classes:
    FileBinaryReadable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface BinaryReadable
    The role of an object that can be read as a stream of bytes.
    Author:
    Fabrizio Giudici
    Status: stable API
    Stereotype:
    Role
    • Field Detail

      • _BinaryReadable_

        static final java.lang.Class<BinaryReadable> _BinaryReadable_
      • DEFAULT

        static final BinaryReadable DEFAULT
        A default implementation which throws IOException when opening the stream.
    • Method Detail

      • openStream

        @Nonnull
        java.io.InputStream openStream()
                                throws java.io.IOException
        Returns an InputStream to read from the object.
        Returns:
        the InputStream
        Throws:
        java.io.IOException - if the operation can't be performed