it.tidalwave.role.spi
Class FileBinaryWritable

Package class diagram package FileBinaryWritable
java.lang.Object
  extended by it.tidalwave.role.spi.FileBinaryWritable
All Implemented Interfaces:
BinaryWritable

public class FileBinaryWritable
extends java.lang.Object
implements BinaryWritable

An implementation of BinaryWritable which delegates to a File.

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

Field Summary
 
Fields inherited from interface it.tidalwave.role.BinaryWritable
BinaryWritable, DEFAULT
 
Constructor Summary
FileBinaryWritable(java.io.File file)
          Creates an instance with the given File delegate.
 
Method Summary
 java.io.OutputStream openStream()
          Returns an OutputStream to write into the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBinaryWritable

public FileBinaryWritable(@Nonnull
                          java.io.File file)
Creates an instance with the given File delegate.

Parameters:
file - the file
Method Detail

openStream

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

Specified by:
openStream in interface BinaryWritable
Returns:
the OutputStream
Throws:
java.io.IOException - if the operation can't be performed


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