is.lill.acre.xml
Class XMLProtocolSerialiser
java.lang.Object
is.lill.acre.xml.XMLProtocolSerialiser
public class XMLProtocolSerialiser
- extends java.lang.Object
Class to write/read ACRE Protocols to/from XML files
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLProtocolSerialiser
public XMLProtocolSerialiser()
readProtocol
public static Protocol readProtocol(java.io.InputStream in,
ProtocolManager pm)
throws ProtocolParseException,
java.io.IOException
- Read a protocol from an InputStream. A ProtocolManager should be provided
as it will be consulted if any imported protocols are found.
- Parameters:
in
- pm
-
- Returns:
-
- Throws:
java.io.IOException
ProtocolParseException
writeProtocol
public static void writeProtocol(Protocol p,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception