com.flagstone.transform.tools
Class MovieWriter

java.lang.Object
  extended by com.flagstone.transform.tools.MovieWriter

public final class MovieWriter
extends Object

MovieWriter can be used to pretty print the output from the toString() method of an object or even an entire Movie.


Constructor Summary
MovieWriter()
           
 
Method Summary
 void write(Movie movie, File file)
          Pretty print an entire Movie and write it to a file.
 void write(Movie movie, Writer writer)
          Pretty print an entire Movie.
 void write(Object obj, Writer writer)
          Pretty print an object from a Movie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovieWriter

public MovieWriter()
Method Detail

write

public void write(Movie movie,
                  File file)
           throws IOException
Pretty print an entire Movie and write it to a file.

Parameters:
movie - the Movie to get the string representation of.
file - the file where the formatted output will be written.
Throws:
IOException - if there is an error writing to the file.

write

public void write(Movie movie,
                  Writer writer)
           throws IOException
Pretty print an entire Movie.

Parameters:
movie - the Movie to get the string representation of.
writer - the Writer formatted output will be written.
Throws:
IOException - if there is an error writing to the file.

write

public void write(Object obj,
                  Writer writer)
           throws IOException
Pretty print an object from a Movie.

Parameters:
obj - the object to get the string representation of.
writer - the Writer formatted output will be written.
Throws:
IOException - if there is an error writing to the file.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.