Class FileBinaryReadable

  • All Implemented Interfaces:
    BinaryReadable

    public class FileBinaryReadable
    extends java.lang.Object
    implements BinaryReadable
    An implementation of BinaryReadable which delegates to a File.
    Author:
    Fabrizio Giudici
    Status: stable API
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream openStream()
      Returns an InputStream to read from the object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileBinaryReadable

        public FileBinaryReadable()
    • Method Detail

      • openStream

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