Class CompactXmlSerializer


  • public class CompactXmlSerializer
    extends XmlSerializer

    Compact XML serializer - creates resulting XML by stripping whitespaces.

    • Constructor Detail

    • Method Detail

      • serialize

        protected void serialize​(TagNode tagNode,
                                 java.io.Writer writer)
                          throws java.io.IOException
        Specified by:
        serialize in class Serializer
        Throws:
        java.io.IOException
      • isWhitespaceString

        private boolean isWhitespaceString​(java.lang.Object object)
        Checks whether specified object's string representation is empty string (containing of only whitespaces).
        Parameters:
        object - Object whose string representation is checked
        Returns:
        true, if empty string, false otherwise