Package org.somda.sdc.glue.common
Class MdibXmlIo
-
- All Implemented Interfaces:
public class MdibXmlIoUtility class to read an Mdib from an input stream (or file).
-
-
Method Summary
Modifier and Type Method Description MdibreadMdib(InputStream getMdibResponseStream)Reads the MDIB from an input stream. MdibreadMdib(File getMdibResponseFile)Reads an MDIB from a file input. voidwriteMdib(Mdib mdib, OutputStream outputStream)Writes an MDIB to an output stream. voidwriteMdib(Mdib mdib, File outputFile)Writes an MDIB to an file. -
-
Method Detail
-
readMdib
Mdib readMdib(InputStream getMdibResponseStream)
Reads the MDIB from an input stream.
- Parameters:
getMdibResponseStream- the input stream to read from.- Returns:
the parsed Mdib.
-
readMdib
Mdib readMdib(File getMdibResponseFile)
Reads an MDIB from a file input.
- Parameters:
getMdibResponseFile- the file to read from.- Returns:
the parsed Mdib.
-
writeMdib
void writeMdib(Mdib mdib, OutputStream outputStream)
Writes an MDIB to an output stream.
- Parameters:
mdib- the MDIB to write.outputStream- the output stream where to write the marshalled XML to.
-
-
-
-