it.tidalwave.role
Interface TextReadable

Package class diagram package TextReadable
All Known Implementing Classes:
FileTextReadable

public interface TextReadable

The role of an object that can be read as a stream of characters.

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

Field Summary
static TextReadable DEFAULT
          A default implementation which throws IOException when opening the stream.
static Class<TextReadable> TextReadable
           
 
Method Summary
 Reader openReader()
          Returns a Reader to read from the object.
 

Field Detail

TextReadable

static final Class<TextReadable> TextReadable

DEFAULT

static final TextReadable DEFAULT
A default implementation which throws IOException when opening the stream.

Method Detail

openReader

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

Returns:
the Reader
Throws:
IOException - if the operation can't be performed


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