Class AFPChainXMLConverter


  • public class AFPChainXMLConverter
    extends java.lang.Object
    • Constructor Detail

      • AFPChainXMLConverter

        public AFPChainXMLConverter()
    • Method Detail

      • toXML

        public static java.lang.String toXML​(AFPChain afpChain,
                                             Atom[] ca1,
                                             Atom[] ca2)
                                      throws java.io.IOException
        Convert an afpChain to a simple XML representation
        Parameters:
        afpChain -
        Returns:
        XML representation of the AFPCHain
        Throws:
        java.io.IOException
      • toXML

        public static void toXML​(AFPChain afpChain,
                                 java.io.StringWriter swriter,
                                 Atom[] ca1,
                                 Atom[] ca2)
                          throws java.io.IOException
        Write the XML representation to a StringWriter
        Parameters:
        afpChain -
        swriter -
        Throws:
        java.io.IOException
      • printXMLEQRInferPositions

        public static void printXMLEQRInferPositions​(PrettyXMLWriter xml,
                                                     AFPChain afpChain,
                                                     int bk,
                                                     Atom[] ca1,
                                                     Atom[] ca2)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • toXML

        public static java.lang.String toXML​(AFPChain afpChain)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • printXMLHeader

        public static void printXMLHeader​(PrettyXMLWriter xml,
                                          AFPChain afpChain)
                                   throws java.io.IOException
        Throws:
        java.io.IOException