it.tidalwave.role.spi
Class FileBinaryReadable

Package class diagram package FileBinaryReadable
java.lang.Object
  extended by it.tidalwave.role.spi.FileBinaryReadable
All Implemented Interfaces:
BinaryReadable

public class FileBinaryReadable
extends Object
implements BinaryReadable

An implementation of BinaryReadable which delegates to a File.

Version:
$Id$
Author:
Fabrizio Giudici
Status: stable API

Field Summary
 
Fields inherited from interface it.tidalwave.role.BinaryReadable
BinaryReadable, DEFAULT
 
Constructor Summary
FileBinaryReadable()
           
 
Method Summary
 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 InputStream openStream()
                       throws IOException
Returns an InputStream to read from the object.

Specified by:
openStream in interface BinaryReadable
Returns:
the InputStream
Throws:
IOException - if the operation can't be performed


Copyright © 2009-2012 Tidalwave s.a.s.. All Rights Reserved.