fr.reseaumexico.model.writer
Class XmlWriter<M>

java.lang.Object
  extended by java.io.Writer
      extended by java.io.OutputStreamWriter
          extended by java.io.FileWriter
              extended by fr.reseaumexico.model.writer.XmlWriter<M>
All Implemented Interfaces:
Closeable, Flushable, Appendable
Direct Known Subclasses:
MexicoXmlWriter

public abstract class XmlWriter<M>
extends FileWriter

Abstract writer to create xml files using XmlNode

Since:
0.1
Author:
sletellier

Field Summary
static int INDENT
           
protected  M model
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
XmlWriter(File file, M model)
           
 
Method Summary
abstract  XmlNode getRootElement()
           
 void write()
           
 
Methods inherited from class java.io.OutputStreamWriter
close, flush, getEncoding, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDENT

public static final int INDENT
See Also:
Constant Field Values

model

protected M model
Constructor Detail

XmlWriter

public XmlWriter(File file,
                 M model)
          throws IOException
Throws:
IOException
Method Detail

write

public void write()
           throws IOException
Throws:
IOException

getRootElement

public abstract XmlNode getRootElement()


Copyright © 2011-2012 Code Lutin. All Rights Reserved.