it.tidalwave.role
Interface BinaryReadable

Package class diagram package BinaryReadable
All Known Implementing Classes:
FileBinaryReadable

public interface BinaryReadable

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

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

Field Summary
static Class<BinaryReadable> BinaryReadable
           
static BinaryReadable DEFAULT
          A default implementation which throws IOException when opening the stream.
 
Method Summary
 InputStream openStream()
          Returns an InputStream to read from the object.
 

Field Detail

BinaryReadable

static final Class<BinaryReadable> BinaryReadable

DEFAULT

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

Method Detail

openStream

@Nonnull
InputStream openStream()
                       throws IOException
Returns an InputStream to read from the object.

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


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