org.kinsources.kiwa.actalog
Class XMLActalog

java.lang.Object
  extended by org.kinsources.kiwa.actalog.XMLActalog

public class XMLActalog
extends java.lang.Object

This class represents a Actalog File reader and writer.

Author:
TIP

Constructor Summary
XMLActalog()
           
 
Method Summary
static Actalog load(java.io.File file)
           
static Actalog readActalog(java.lang.String source)
           
static Actalog readActalog(fr.devinsy.util.xml.XMLReader in)
          Reads a net from a XMLReader object.
static EventLog readEventLog(java.lang.String source)
           
static EventLog readEventLog(fr.devinsy.util.xml.XMLReader in)
           
static void readEventLogs(EventLogs target, fr.devinsy.util.xml.XMLReader in)
           
static void save(java.io.File file, Actalog source, java.lang.String generator)
          Saves a net in a file.
static java.lang.String toXMLString(Actalog source)
           
static java.lang.String toXMLString(EventLog source)
           
static void write(fr.devinsy.util.xml.XMLWriter out, Actalog source)
          Writes a net in an stream.
static void write(fr.devinsy.util.xml.XMLWriter out, EventLog source)
           
static void write(fr.devinsy.util.xml.XMLWriter out, EventLogs source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLActalog

public XMLActalog()
Method Detail

load

public static Actalog load(java.io.File file)
                    throws java.lang.Exception
Parameters:
file -
Returns:
Throws:
java.lang.Exception

readActalog

public static Actalog readActalog(java.lang.String source)
                           throws javax.xml.stream.XMLStreamException,
                                  fr.devinsy.util.xml.XMLBadFormatException
Parameters:
target -
in -
Throws:
fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException
java.lang.Exception

readActalog

public static Actalog readActalog(fr.devinsy.util.xml.XMLReader in)
                           throws javax.xml.stream.XMLStreamException,
                                  fr.devinsy.util.xml.XMLBadFormatException
Reads a net from a XMLReader object.

Parameters:
in - the source of reading.
Returns:
the read net.
Throws:
fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException

readEventLog

public static EventLog readEventLog(java.lang.String source)
                             throws javax.xml.stream.XMLStreamException,
                                    fr.devinsy.util.xml.XMLBadFormatException
Parameters:
target -
in -
Throws:
fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException
java.lang.Exception

readEventLog

public static EventLog readEventLog(fr.devinsy.util.xml.XMLReader in)
                             throws javax.xml.stream.XMLStreamException,
                                    fr.devinsy.util.xml.XMLBadFormatException
Parameters:
target -
in -
Throws:
fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException

readEventLogs

public static void readEventLogs(EventLogs target,
                                 fr.devinsy.util.xml.XMLReader in)
                          throws javax.xml.stream.XMLStreamException,
                                 fr.devinsy.util.xml.XMLBadFormatException
Parameters:
target -
in -
Throws:
fr.devinsy.util.xml.XMLBadFormatException
javax.xml.stream.XMLStreamException

save

public static void save(java.io.File file,
                        Actalog source,
                        java.lang.String generator)
                 throws java.lang.Exception
Saves a net in a file.

Parameters:
file - Target.
source - Source.
Throws:
java.lang.Exception

toXMLString

public static java.lang.String toXMLString(Actalog source)
                                    throws java.io.UnsupportedEncodingException
Parameters:
source -
Returns:
Throws:
java.io.UnsupportedEncodingException

toXMLString

public static java.lang.String toXMLString(EventLog source)
                                    throws java.io.UnsupportedEncodingException
Parameters:
source -
Returns:
Throws:
java.io.UnsupportedEncodingException

write

public static void write(fr.devinsy.util.xml.XMLWriter out,
                         Actalog source)
Writes a net in an stream.

Parameters:
out - Target.
source - Source.

write

public static void write(fr.devinsy.util.xml.XMLWriter out,
                         EventLog source)
Parameters:
source -

write

public static void write(fr.devinsy.util.xml.XMLWriter out,
                         EventLogs source)
Parameters:
source -