org.kinsources.kiwa.actilog
Class XMLActilog

java.lang.Object
  extended by org.kinsources.kiwa.actilog.XMLActilog

public class XMLActilog
extends java.lang.Object

This class represents a Actilog File reader and writer.

Author:
TIP

Constructor Summary
XMLActilog()
           
 
Method Summary
static Actilog load(java.io.File file)
           
static Actilog readActilog(java.lang.String source)
           
static Actilog readActilog(fr.devinsy.util.xml.XMLReader in)
          Reads a net from a XMLReader object.
static Log readLog(java.lang.String source)
           
static Log readLog(fr.devinsy.util.xml.XMLReader in)
           
static void readLogs(Logs target, fr.devinsy.util.xml.XMLReader in)
           
static void save(java.io.File file, Actilog source, java.lang.String generator)
          Saves a net in a file.
static java.lang.String toXMLString(Actilog source)
           
static java.lang.String toXMLString(Log source)
           
static void write(fr.devinsy.util.xml.XMLWriter out, Actilog source)
          Writes a net in an stream.
static void write(fr.devinsy.util.xml.XMLWriter out, Log source)
           
static void write(fr.devinsy.util.xml.XMLWriter out, Logs source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLActilog

public XMLActilog()
Method Detail

load

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

readActilog

public static Actilog readActilog(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

readActilog

public static Actilog readActilog(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

readLog

public static Log readLog(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

readLog

public static Log readLog(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

readLogs

public static void readLogs(Logs 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,
                        Actilog 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(Actilog source)
                                    throws java.io.UnsupportedEncodingException
Parameters:
source -
Returns:
Throws:
java.io.UnsupportedEncodingException

toXMLString

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

write

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

Parameters:
out - Target.
source - Source.

write

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

write

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