WstxInputFactory.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:woodstox 作者:
protected XMLEventAllocator createEventAllocator() 
{
    // Explicitly set allocate?
    if (mAllocator != null) {
        return mAllocator.newInstance();
    }

    /* Complete or fast one? Note: standard allocator is designed
     * in such a way that newInstance() need not be called (calling
     * it wouldn't do anything, anyway)
     */
    return mConfig.willPreserveLocation() ?
        DefaultEventAllocator.getDefaultInstance()
        : DefaultEventAllocator.getFastInstance();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号