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