Class CsvToXmlServiceImpl

    • Constructor Detail

      • CsvToXmlServiceImpl

        public CsvToXmlServiceImpl()
    • Method Detail

      • stripIllegalXmlChars

        protected boolean stripIllegalXmlChars()
      • createTextNode

        protected org.w3c.dom.Node createTextNode​(org.w3c.dom.Document doc,
                                                  java.lang.String value)
      • addNewElement

        protected org.w3c.dom.Element addNewElement​(org.w3c.dom.Document doc,
                                                    org.w3c.dom.Element parent,
                                                    java.lang.String name)
      • writeXmlDocument

        protected void writeXmlDocument​(org.w3c.dom.Document doc,
                                        AdaptrisMessage msg)
                                 throws java.lang.Exception
        Helper method to write the XML document to the AdaptrisMessage taking into account any encoding requirements.
        Parameters:
        doc - the XML document
        msg - the AdaptrisMessage
        Throws:
        java.lang.Exception
      • buildPreferences

        protected org.supercsv.prefs.CsvPreference buildPreferences()
      • getPreferenceBuilder

        public PreferenceBuilder getPreferenceBuilder()
        How to parse the CSV file.
      • setPreferenceBuilder

        public void setPreferenceBuilder​(PreferenceBuilder preferenceBuilder)
        How to parse the CSV file.