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 java.lang.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
 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


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