it.tidalwave.role.spi
Class FileTextReadable

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

public class FileTextReadable
extends java.lang.Object
implements TextReadable

An implementation of TextReadable which delegates to a File.

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

Field Summary
 
Fields inherited from interface it.tidalwave.role.TextReadable
DEFAULT, TextReadable
 
Constructor Summary
FileTextReadable()
           
 
Method Summary
 java.io.Reader openReader()
          Returns a Reader 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

FileTextReadable

public FileTextReadable()
Method Detail

openReader

@Nonnull
public java.io.Reader openReader()
                          throws java.io.IOException
Returns a Reader to read from the object.

Specified by:
openReader in interface TextReadable
Returns:
the Reader
Throws:
java.io.IOException - if the operation can't be performed


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