Class RemoveIllegalXmlCharsWriter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter, com.thoughtworks.xstream.io.HierarchicalStreamWriter

    public class RemoveIllegalXmlCharsWriter
    extends com.thoughtworks.xstream.io.WriterWrapper
    A HierarchicalStreamWriter which removes any character which is not legal in XML
    Since:
    jadice server 4.3.1.20
    See Also:
    XMLChar.isValid(int)
    • Constructor Detail

      • RemoveIllegalXmlCharsWriter

        public RemoveIllegalXmlCharsWriter​(com.thoughtworks.xstream.io.HierarchicalStreamWriter wrapped)
    • Method Detail

      • addAttribute

        public void addAttribute​(String name,
                                 String value)
        Specified by:
        addAttribute in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        addAttribute in class com.thoughtworks.xstream.io.WriterWrapper
      • close

        public void close()
        Specified by:
        close in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        close in class com.thoughtworks.xstream.io.WriterWrapper
      • endNode

        public void endNode()
        Specified by:
        endNode in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        endNode in class com.thoughtworks.xstream.io.WriterWrapper
      • flush

        public void flush()
        Specified by:
        flush in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        flush in class com.thoughtworks.xstream.io.WriterWrapper
      • setValue

        public void setValue​(String text)
        Specified by:
        setValue in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        setValue in class com.thoughtworks.xstream.io.WriterWrapper
      • startNode

        public void startNode​(String name)
        Specified by:
        startNode in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        startNode in class com.thoughtworks.xstream.io.WriterWrapper
      • underlyingWriter

        public com.thoughtworks.xstream.io.HierarchicalStreamWriter underlyingWriter()
        Specified by:
        underlyingWriter in interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
        Overrides:
        underlyingWriter in class com.thoughtworks.xstream.io.WriterWrapper