Class MdibXmlIo

  • All Implemented Interfaces:

    
    public class MdibXmlIo
    
                        

    Utility class to read an Mdib from an input stream (or file).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Mdib readMdib(InputStream getMdibResponseStream) Reads the MDIB from an input stream.
      Mdib readMdib(File getMdibResponseFile) Reads an MDIB from a file input.
      void writeMdib(Mdib mdib, OutputStream outputStream) Writes an MDIB to an output stream.
      void writeMdib(Mdib mdib, File outputFile) Writes an MDIB to an file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.
      • writeMdib

         void writeMdib(Mdib mdib, File outputFile)

        Writes an MDIB to an file.

        Parameters:
        mdib - the MDIB to write.
        outputFile - the output file where to write the marshalled XML to.