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
BinaryReadable
static final Class<BinaryReadable> BinaryReadable
DEFAULT
static final BinaryReadable DEFAULT
- A default implementation which throws
IOException
when opening the stream.
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.