Package org.rutebanken.siri20.util
Class SiriXml
- java.lang.Object
-
- org.rutebanken.siri20.util.SiriXml
-
public class SiriXml extends Object
-
-
Constructor Summary
Constructors Constructor Description SiriXml()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SiriparseXml(InputStream inputStream)static SiriparseXml(String xml)static StringtoXml(Siri siri)static StringtoXml(Siri siri, com.sun.xml.bind.marshaller.NamespacePrefixMapper customNamespacePrefixMapper)static voidtoXml(Siri siri, com.sun.xml.bind.marshaller.NamespacePrefixMapper customNamespacePrefixMapper, OutputStream out)
-
-
-
Method Detail
-
parseXml
public static Siri parseXml(String xml) throws jakarta.xml.bind.JAXBException, XMLStreamException
- Throws:
jakarta.xml.bind.JAXBExceptionXMLStreamException
-
parseXml
public static Siri parseXml(InputStream inputStream) throws jakarta.xml.bind.JAXBException, XMLStreamException
- Throws:
jakarta.xml.bind.JAXBExceptionXMLStreamException
-
toXml
public static String toXml(Siri siri) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
-
toXml
public static String toXml(Siri siri, com.sun.xml.bind.marshaller.NamespacePrefixMapper customNamespacePrefixMapper) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
-
toXml
public static void toXml(Siri siri, com.sun.xml.bind.marshaller.NamespacePrefixMapper customNamespacePrefixMapper, OutputStream out) throws jakarta.xml.bind.JAXBException, IOException
- Throws:
jakarta.xml.bind.JAXBExceptionIOException
-
-