public class XMLHico
extends java.lang.Object
Constructor and Description |
---|
XMLHico() |
Modifier and Type | Method and Description |
---|---|
static Hico |
load(byte[] source) |
static Hico |
load(java.io.File file) |
static Article |
readArticle(java.lang.String source) |
static Article |
readArticle(fr.devinsy.util.xml.XMLReader in) |
static void |
readArticles(Articles target,
fr.devinsy.util.xml.XMLReader in) |
static Hico |
readHico(java.lang.String source) |
static Hico |
readHico(fr.devinsy.util.xml.XMLReader in)
Reads a net from a XMLReader object.
|
static void |
save(java.io.File file,
Hico source,
java.lang.String generator)
Saves a net in a file.
|
static java.lang.String |
toXMLString(Article source) |
static java.lang.String |
toXMLString(Hico source) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Article source) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Articles source) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Hico source)
Writes a net in an stream.
|
public static Hico load(byte[] source) throws java.lang.Exception
file
- java.lang.Exception
public static Hico load(java.io.File file) throws java.lang.Exception
file
- java.lang.Exception
public static Article readArticle(java.lang.String source) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target
- in
- fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException
java.lang.Exception
public static Article readArticle(fr.devinsy.util.xml.XMLReader in) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target
- in
- fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException
public static void readArticles(Articles target, fr.devinsy.util.xml.XMLReader in) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target
- in
- fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException
public static Hico readHico(java.lang.String source) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target
- in
- fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException
java.lang.Exception
public static Hico readHico(fr.devinsy.util.xml.XMLReader in) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
in
- the source of reading.fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException
public static void save(java.io.File file, Hico source, java.lang.String generator) throws java.lang.Exception
file
- Target.source
- Source.java.lang.Exception
public static java.lang.String toXMLString(Article source) throws java.io.UnsupportedEncodingException
source
- java.io.UnsupportedEncodingException
public static java.lang.String toXMLString(Hico source) throws java.io.UnsupportedEncodingException
source
- java.io.UnsupportedEncodingException
public static void write(fr.devinsy.util.xml.XMLWriter out, Article source)
source
- public static void write(fr.devinsy.util.xml.XMLWriter out, Articles source)
source
- public static void write(fr.devinsy.util.xml.XMLWriter out, Hico source)
out
- Target.source
- Source.