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 java.lang.Class<BinaryReadable> BinaryReadable
           
static BinaryReadable DEFAULT
          A default implementation which throws IOException when opening the stream.
 
Method Summary
 java.io.InputStream openStream()
          Returns an InputStream to read from the object.
 

Field Detail

BinaryReadable

static final java.lang.Class<BinaryReadable> BinaryReadable

DEFAULT

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

Method Detail

openStream

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

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


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