it.tidalwave.role.spi
Class FileTextWritable

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

public class FileTextWritable
extends java.lang.Object
implements TextWritable

An implementation of TextWritable which delegates to a File.

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

Field Summary
 
Fields inherited from interface it.tidalwave.role.TextWritable
DEFAULT, TextWritable
 
Constructor Summary
FileTextWritable(java.io.File file)
          Creates an instance with the given File delegate.
 
Method Summary
 java.io.Writer openWriter()
          Returns a Writer 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

FileTextWritable

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

Parameters:
file - the file
Method Detail

openWriter

@Nonnull
public java.io.Writer openWriter()
                          throws java.io.IOException
Returns a Writer to write into the object.

Specified by:
openWriter in interface TextWritable
Returns:
the Writer
Throws:
java.io.IOException - if the operation can't be performed


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