|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.tools.MovieWriter
public final class MovieWriter
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 |
|---|
public MovieWriter()
| Method Detail |
|---|
public void write(Movie movie,
File file)
throws IOException
movie - the Movie to get the string representation of.file - the file where the formatted output will be written.
IOException - if there is an error writing to the file.
public void write(Movie movie,
Writer writer)
throws IOException
movie - the Movie to get the string representation of.writer - the Writer formatted output will be written.
IOException - if there is an error writing to the file.
public void write(Object obj,
Writer writer)
throws IOException
obj - the object to get the string representation of.writer - the Writer formatted output will be written.
IOException - if there is an error writing to the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||