Class CsvXmlTransformImpl

    • Constructor Detail

      • CsvXmlTransformImpl

        public CsvXmlTransformImpl()
    • Method Detail

      • evaluateEncoding

        protected java.lang.String evaluateEncoding​(AdaptrisMessage msg)
      • includeLineNumberAttribute

        protected boolean includeLineNumberAttribute()
      • safeElementNames

        protected static java.lang.String[] safeElementNames​(java.lang.String[] input)
      • safeElementNames

        protected static java.util.List<java.lang.String> safeElementNames​(java.util.List<java.lang.String> input)
      • getOutputMessageEncoding

        public java.lang.String getOutputMessageEncoding()
        Set the encoding for the resulting XML document.

        If not specified the following rules will be applied:

        1. If the AdaptrisMessage.getCharEncoding() is non-null then that will be used.
        2. UTF-8

        As a result; the character encoding on the message is always set using AdaptrisMessage.setCharEncoding(String).

      • setOutputMessageEncoding

        public void setOutputMessageEncoding​(java.lang.String outputMessageEncoding)
        Set the encoding for the resulting XML document.

        If not specified the following rules will be applied:

        1. If the AdaptrisMessage.getCharEncoding() is non-null then that will be used.
        2. UTF-8

        As a result; the character encoding on the message is always set using AdaptrisMessage.setCharEncoding(String).

      • getIncludeLineNumberAttribute

        public java.lang.Boolean getIncludeLineNumberAttribute()
        Specify whether or not to include the line number as an attribute on each record.
      • setIncludeLineNumberAttribute

        public void setIncludeLineNumberAttribute​(java.lang.Boolean includeLineNumberAttribute)
        Specify whether or not to include the line number as an attribute on each record.