当前位置: 首页>>代码示例>>Java>>正文


Java EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG属性代码示例

本文整理汇总了Java中com.sun.xml.internal.fastinfoset.EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG属性的典型用法代码示例。如果您正苦于以下问题:Java EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG属性的具体用法?Java EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG怎么用?Java EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.xml.internal.fastinfoset.EncodingConstants的用法示例。


在下文中一共展示了EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processDIIOptionalProperties

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?
         */
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:61,代码来源:StAXDocumentParser.java

示例2: processDIIOptionalProperties

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?
         */
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:53,代码来源:DOMDocumentParser.java

示例3: processDIIOptionalProperties

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?
         */
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:65,代码来源:SAXDocumentParser.java

示例4: processDIIOptionalProperties

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?
         */
    }
}
 
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:53,代码来源:DOMDocumentParser.java

示例5: processDIIOptionalProperties

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?
         */
    }
}
 
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:65,代码来源:SAXDocumentParser.java


注:本文中的com.sun.xml.internal.fastinfoset.EncodingConstants.DOCUMENT_UNPARSED_ENTITIES_FLAG属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。