|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.sketch.util.SketchFileIO
public class SketchFileIO
Here is a collection of static methods which are used to save and load Sketches from XML.
Constructor Summary | |
---|---|
SketchFileIO()
|
Method Summary | |
---|---|
static boolean |
graphicalSketchFromXML(java.io.File inputFile,
Sketch outputSketch)
Load a sketch from XML. |
static boolean |
initializeExportHandlerFromXML(java.io.File inputFile,
ExportHandler eHandler)
Method to initialize an ExportHandler from a supplied XML file |
static boolean |
initializeSketchHandlerFromXML(java.io.File inputFile,
SketchHandler sketchHandler)
Method to initialize a SketchHandler for a supplied XML file |
private static void |
outputXMLtoFile(java.io.File outputFile,
org.w3c.dom.Document xml)
Output the document as XML |
static boolean |
sketchToXML(java.io.File outputFile,
Sketch inputSketch)
Converts a sketch to an XML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SketchFileIO()
Method Detail |
---|
public static boolean sketchToXML(java.io.File outputFile, Sketch inputSketch)
outputFile
- The file we will output toinputSketch
- The sketch we're reading to
private static void outputXMLtoFile(java.io.File outputFile, org.w3c.dom.Document xml)
outputFile
- output filexml
- output XMLpublic static boolean graphicalSketchFromXML(java.io.File inputFile, Sketch outputSketch)
inputFile
- the file from which the XML will be readoutputSketch
- The sketch which will be getting the new values
public static boolean initializeSketchHandlerFromXML(java.io.File inputFile, SketchHandler sketchHandler)
inputFile
- The XML file containing the sketch informationsketchHandler
- An instance of a sketchHandler.
public static boolean initializeExportHandlerFromXML(java.io.File inputFile, ExportHandler eHandler)
inputFile
- The XML file containing the informationeHandler
- An instance of an ExportHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |