it.tidalwave.role
Interface BinaryWritable

Package class diagram package BinaryWritable
All Known Implementing Classes:
FileBinaryWritable

public interface BinaryWritable

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

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

Field Summary
static Class<BinaryWritable> BinaryWritable
           
static BinaryWritable DEFAULT
          A default implementation which throws IOException when opening the stream.
 
Method Summary
 OutputStream openStream()
          Returns an OutputStream to write into the object.
 

Field Detail

BinaryWritable

static final Class<BinaryWritable> BinaryWritable

DEFAULT

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

Method Detail

openStream

@Nonnull
OutputStream openStream()
                        throws IOException
Returns an OutputStream to write into the object.

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


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