Enum XmlDataReader.Feature

    • Enum Constant Detail

      • LOAD_COMMENTS

        public static final XmlDataReader.Feature LOAD_COMMENTS
        If enabled, comments are loaded (as comment nodes).

        They are ignored by default.

      • LOAD_SPACES

        public static final XmlDataReader.Feature LOAD_SPACES
        If enabled, spaces are loaded (as text nodes).

        They are ignored by default.

      • ALLOW_MIXED_CONTENT

        public static final XmlDataReader.Feature ALLOW_MIXED_CONTENT
        If enabled, mixed content is allowed.
      • SHARE_ATTRIBUTE_NAMES

        public static final XmlDataReader.Feature SHARE_ATTRIBUTE_NAMES
        If enabled, attributes names are shared using an internal cache.

        No sharing by default (SAX parsers may already do this).

      • SHARE_ELEMENT_NAMES

        public static final XmlDataReader.Feature SHARE_ELEMENT_NAMES
        If enabled, element names are shared using an internal cache.

        No sharing by default (SAX parsers may already do this).

      • DUMMY_ENTITY_RESOLVER

        public static final XmlDataReader.Feature DUMMY_ENTITY_RESOLVER
        If enabled, a dummy entity resolver is used.

        This may be used to ignore DTD.
        However, if entities are used, result will be wrong.

    • Method Detail

      • values

        public static XmlDataReader.Feature[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (XmlDataReader.Feature c : XmlDataReader.Feature.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static XmlDataReader.Feature valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null