Class FileBinary

  • All Implemented Interfaces:
    Binary

    public class FileBinary
    extends Object
    implements Binary
    Implements Binary for files on a filesystem.
    • Constructor Detail

      • FileBinary

        public FileBinary​(File file)
        Parameters:
        file - the file to wrap as a Binary
    • Method Detail

      • getContent

        public InputStream getContent​(int from,
                                      int to)
        Specified by:
        getContent in interface Binary
        Parameters:
        from - the point in bytes from which to begin content
        to - the point in bytes at which to end content
        Returns:
        content from from to to inclusive