public class XMLAgora
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLAgora.Mode |
| Constructor and Description |
|---|
XMLAgora() |
| Modifier and Type | Method and Description |
|---|---|
static Agora |
load(java.io.File file) |
static Agora |
readAgora(fr.devinsy.util.xml.XMLReader in)
Reads a net from a XMLReader object.
|
static Forum |
readForum(fr.devinsy.util.xml.XMLReader in) |
static void |
readForums(Forums target,
java.lang.String source) |
static void |
readForums(Forums target,
fr.devinsy.util.xml.XMLReader in) |
static Message |
readMessage(java.lang.String source) |
static Message |
readMessage(fr.devinsy.util.xml.XMLReader in,
Topic topic) |
static void |
readMessages(Messages target,
fr.devinsy.util.xml.XMLReader in,
Topic topic) |
static Topic |
readTopic(java.lang.String source) |
static Topic |
readTopic(fr.devinsy.util.xml.XMLReader in,
Forum forum) |
static void |
readTopics(Topics target,
fr.devinsy.util.xml.XMLReader in,
Forum forum) |
static void |
save(java.io.File file,
Agora source,
java.lang.String generator)
Saves a net in a file.
|
static java.lang.String |
toXMLString(Forums source) |
static java.lang.String |
toXMLString(Message source) |
static java.lang.String |
toXMLString(Topic source) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Agora source)
Writes a net in an stream.
|
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Forums source,
XMLAgora.Mode mode) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Forum source,
XMLAgora.Mode mode) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Message source) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Messages source,
XMLAgora.Mode mode) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Topics source,
XMLAgora.Mode mode) |
static void |
write(fr.devinsy.util.xml.XMLWriter out,
Topic source,
XMLAgora.Mode mode) |
public static Agora load(java.io.File file) throws java.lang.Exception
file - java.lang.Exceptionpublic static Agora readAgora(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.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionpublic static Forum readForum(fr.devinsy.util.xml.XMLReader in) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionpublic static void readForums(Forums target, java.lang.String source) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionjava.lang.Exceptionpublic static void readForums(Forums target, fr.devinsy.util.xml.XMLReader in) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionpublic static Message readMessage(java.lang.String source) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionjava.lang.Exceptionpublic static Message readMessage(fr.devinsy.util.xml.XMLReader in, Topic topic) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionpublic static void readMessages(Messages target, fr.devinsy.util.xml.XMLReader in, Topic topic) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionpublic static Topic readTopic(java.lang.String source) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionjava.lang.Exceptionpublic static Topic readTopic(fr.devinsy.util.xml.XMLReader in, Forum forum) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionpublic static void readTopics(Topics target, fr.devinsy.util.xml.XMLReader in, Forum forum) throws javax.xml.stream.XMLStreamException, fr.devinsy.util.xml.XMLBadFormatException
target - in - fr.devinsy.util.xml.XMLBadFormatExceptionjavax.xml.stream.XMLStreamExceptionpublic static void save(java.io.File file,
Agora source,
java.lang.String generator)
throws java.lang.Exception
file - Target.source - Source.java.lang.Exceptionpublic static java.lang.String toXMLString(Forums source) throws java.io.UnsupportedEncodingException
source - java.io.UnsupportedEncodingExceptionpublic static java.lang.String toXMLString(Message source) throws java.io.UnsupportedEncodingException
source - java.io.UnsupportedEncodingExceptionpublic static java.lang.String toXMLString(Topic source) throws java.io.UnsupportedEncodingException
source - java.io.UnsupportedEncodingExceptionpublic static void write(fr.devinsy.util.xml.XMLWriter out,
Agora source)
out - Target.source - Source.public static void write(fr.devinsy.util.xml.XMLWriter out,
Forum source,
XMLAgora.Mode mode)
source - public static void write(fr.devinsy.util.xml.XMLWriter out,
Forums source,
XMLAgora.Mode mode)
source - public static void write(fr.devinsy.util.xml.XMLWriter out,
Message source)
source - public static void write(fr.devinsy.util.xml.XMLWriter out,
Messages source,
XMLAgora.Mode mode)
source - public static void write(fr.devinsy.util.xml.XMLWriter out,
Topic source,
XMLAgora.Mode mode)
source - public static void write(fr.devinsy.util.xml.XMLWriter out,
Topics source,
XMLAgora.Mode mode)
source -