org.kinsources.kiwa.actulog
Class XMLActulog

java.lang.Object
  extended by org.kinsources.kiwa.actulog.XMLActulog

public class XMLActulog
extends java.lang.Object

This class represents a Actulog File reader and writer.

Author:
TIP

Constructor Summary
XMLActulog()
           
 
Method Summary
static Actulog load(java.io.File file)
           
static Actulog readActulog(java.lang.String source)
           
static Actulog readActulog(fr.devinsy.util.xml.XMLReader in)
          Reads a net from a XMLReader object.
static Wire readWire(java.lang.String source)
           
static Wire readWire(fr.devinsy.util.xml.XMLReader in)
           
static void readWires(Wires target, fr.devinsy.util.xml.XMLReader in)
           
static void save(java.io.File file, Actulog source, java.lang.String generator)
          Saves a net in a file.
static java.lang.String toXMLString(Actulog source)
           
static java.lang.String toXMLString(Wire source)
           
static void write(fr.devinsy.util.xml.XMLWriter out, Actulog source)
          Writes a net in an stream.
static void write(fr.devinsy.util.xml.XMLWriter out, Wire source)
           
static void write(fr.devinsy.util.xml.XMLWriter out, Wires source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLActulog

public XMLActulog()
Method Detail

load

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

readActulog

public static Actulog readActulog(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

readActulog

public static Actulog readActulog(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

readWire

public static Wire readWire(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

readWire

public static Wire readWire(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

readWires

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

toXMLString

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

write

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

Parameters:
out - Target.
source - Source.

write

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

write

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