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.Exception
public 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.XMLBadFormatException
javax.xml.stream.XMLStreamException
public 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.XMLBadFormatException
javax.xml.stream.XMLStreamException
public 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.XMLBadFormatException
javax.xml.stream.XMLStreamException
java.lang.Exception
public 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.XMLBadFormatException
javax.xml.stream.XMLStreamException
public static Message readMessage(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 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.XMLBadFormatException
javax.xml.stream.XMLStreamException
public 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.XMLBadFormatException
javax.xml.stream.XMLStreamException
public static Topic readTopic(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 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.XMLBadFormatException
javax.xml.stream.XMLStreamException
public 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.XMLBadFormatException
javax.xml.stream.XMLStreamException
public static void save(java.io.File file, Agora source, java.lang.String generator) throws java.lang.Exception
file
- Target.source
- Source.java.lang.Exception
public static java.lang.String toXMLString(Forums source) throws java.io.UnsupportedEncodingException
source
- java.io.UnsupportedEncodingException
public static java.lang.String toXMLString(Message source) throws java.io.UnsupportedEncodingException
source
- java.io.UnsupportedEncodingException
public static java.lang.String toXMLString(Topic source) throws java.io.UnsupportedEncodingException
source
- java.io.UnsupportedEncodingException
public 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
-