Java Code Examples for com.sun.xml.internal.fastinfoset.EncodingConstants#DOCUMENT_ADDITIONAL_DATA_FLAG

The following examples show how to use com.sun.xml.internal.fastinfoset.EncodingConstants#DOCUMENT_ADDITIONAL_DATA_FLAG . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SAXDocumentParser.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String characterEncodingScheme = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 2
Source File: DOMDocumentParser.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        // TODO Report notations
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        // TODO Report unparsed entities
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String version = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the document version?
         */
    }
}
 
Example 3
Source File: StAXDocumentParser.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties(int b) throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        _characterEncodingScheme = decodeCharacterEncodingScheme();
    }

    if ((b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        boolean standalone = (read() > 0) ? true : false ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 4
Source File: SAXDocumentParser.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String characterEncodingScheme = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 5
Source File: DOMDocumentParser.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        // TODO Report notations
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        // TODO Report unparsed entities
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String version = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the document version?
         */
    }
}
 
Example 6
Source File: StAXDocumentParser.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties(int b) throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        _characterEncodingScheme = decodeCharacterEncodingScheme();
    }

    if ((b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        boolean standalone = (read() > 0) ? true : false ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 7
Source File: SAXDocumentParser.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String characterEncodingScheme = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 8
Source File: DOMDocumentParser.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        // TODO Report notations
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        // TODO Report unparsed entities
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String version = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the document version?
         */
    }
}
 
Example 9
Source File: StAXDocumentParser.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties(int b) throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        _characterEncodingScheme = decodeCharacterEncodingScheme();
    }

    if ((b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        boolean standalone = (read() > 0) ? true : false ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 10
Source File: SAXDocumentParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String characterEncodingScheme = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 11
Source File: SAXDocumentParser.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String characterEncodingScheme = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 12
Source File: StAXDocumentParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties(int b) throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        _characterEncodingScheme = decodeCharacterEncodingScheme();
    }

    if ((b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        boolean standalone = (read() > 0) ? true : false ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 13
Source File: SAXDocumentParser.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String characterEncodingScheme = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 14
Source File: DOMDocumentParser.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        // TODO Report notations
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        // TODO Report unparsed entities
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String version = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the document version?
         */
    }
}
 
Example 15
Source File: StAXDocumentParser.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties(int b) throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        _characterEncodingScheme = decodeCharacterEncodingScheme();
    }

    if ((b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        boolean standalone = (read() > 0) ? true : false ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 16
Source File: SAXDocumentParser.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String characterEncodingScheme = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 17
Source File: DOMDocumentParser.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        // TODO Report notations
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        // TODO Report unparsed entities
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String version = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the document version?
         */
    }
}
 
Example 18
Source File: StAXDocumentParser.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties(int b) throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        _characterEncodingScheme = decodeCharacterEncodingScheme();
    }

    if ((b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        boolean standalone = (read() > 0) ? true : false ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 19
Source File: SAXDocumentParser.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (_b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((_b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((_b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        /*String characterEncodingScheme = */decodeCharacterEncodingScheme();
        /*
         * TODO
         * how to report the character encoding scheme?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        /*boolean standalone = (*/read()/* > 0) ? true : false*/ ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((_b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}
 
Example 20
Source File: StAXDocumentParser.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected final void processDIIOptionalProperties(int b) throws FastInfosetException, IOException {
    // Optimize for the most common case
    if (b == EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) {
        decodeInitialVocabulary();
        return;
    }

    if ((b & EncodingConstants.DOCUMENT_ADDITIONAL_DATA_FLAG) > 0) {
        decodeAdditionalData();
        /*
         * TODO
         * how to report the additional data?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_INITIAL_VOCABULARY_FLAG) > 0) {
        decodeInitialVocabulary();
    }

    if ((b & EncodingConstants.DOCUMENT_NOTATIONS_FLAG) > 0) {
        decodeNotations();
        /*
            try {
                _dtdHandler.notationDecl(name, public_identifier, system_identifier);
            } catch (SAXException e) {
                throw new IOException("NotationsDeclarationII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG) > 0) {
        decodeUnparsedEntities();
        /*
            try {
                _dtdHandler.unparsedEntityDecl(name, public_identifier, system_identifier, notation_name);
            } catch (SAXException e) {
                throw new IOException("UnparsedEntitiesII");
            }
         */
    }

    if ((b & EncodingConstants.DOCUMENT_CHARACTER_ENCODING_SCHEME) > 0) {
        _characterEncodingScheme = decodeCharacterEncodingScheme();
    }

    if ((b & EncodingConstants.DOCUMENT_STANDALONE_FLAG) > 0) {
        boolean standalone = (read() > 0) ? true : false ;
        /*
         * TODO
         * how to report the standalone flag?
         */
    }

    if ((b & EncodingConstants.DOCUMENT_VERSION_FLAG) > 0) {
        decodeVersion();
        /*
         * TODO
         * how to report the standalone flag?
         */
    }
}