|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xmlgraph.converter.Serializer
public class Serializer
Production of serialized XML representation of XML graphs.
Constructor Summary | |
---|---|
Serializer()
Constructs a new converter. |
Method Summary | |
---|---|
Document |
convert(XMLGraph xg,
boolean store_origins)
Returns JDOM representation of this XML graph. |
Map<String,Automaton> |
getAutomata()
Returns automata constructed by convert(XMLGraph,boolean) . |
void |
store(XMLGraph xg,
String dir,
boolean store_origins)
Stores XML graph in XML file xg.xml and
serialized automata in .aut files. |
void |
store(XMLGraph xg,
ZipOutputStream zip,
boolean store_origins)
Stores XML graph (including automata) in ZIP. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Serializer()
Method Detail |
---|
public Document convert(XMLGraph xg, boolean store_origins)
getAutomata()
.
Only the reachable part of the XML graph is included.
xg
- XML graph to convertstore_origins
- if true, node origins are stored as strings (and ignored otherwise)
public Map<String,Automaton> getAutomata()
convert(XMLGraph,boolean)
.
public void store(XMLGraph xg, String dir, boolean store_origins) throws IOException
xg.xml
and
serialized automata in .aut
files.
xg
- XML graphdir
- directory where files are storedstore_origins
- if true, node origins are stored as strings (and ignored otherwise)
IOException
- if files cannot be writtenpublic void store(XMLGraph xg, ZipOutputStream zip, boolean store_origins) throws IOException
xg
- XML graphzip
- zip output stream where files are storedstore_origins
- if true, node origins are stored as strings (and ignored otherwise)
IOException
- if files cannot be written
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |