本文整理汇总了Java中com.sun.org.apache.xml.internal.utils.XMLStringFactory类的典型用法代码示例。如果您正苦于以下问题:Java XMLStringFactory类的具体用法?Java XMLStringFactory怎么用?Java XMLStringFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XMLStringFactory类属于com.sun.org.apache.xml.internal.utils包,在下文中一共展示了XMLStringFactory类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: SAXImpl
import com.sun.org.apache.xml.internal.utils.XMLStringFactory; //导入依赖的package包/类
/**
* Construct a SAXImpl object using the default block size.
*/
public SAXImpl(XSLTCDTMManager mgr, Source source,
int dtmIdentity, DTMWSFilter whiteSpaceFilter,
XMLStringFactory xstringfactory,
boolean doIndexing, boolean buildIdIndex)
{
this(mgr, source, dtmIdentity, whiteSpaceFilter, xstringfactory,
doIndexing, DEFAULT_BLOCKSIZE, buildIdIndex, false);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:SAXImpl.java
示例2: SAX2RTFDTM
import com.sun.org.apache.xml.internal.utils.XMLStringFactory; //导入依赖的package包/类
public SAX2RTFDTM(DTMManager mgr, Source source, int dtmIdentity,
DTMWSFilter whiteSpaceFilter,
XMLStringFactory xstringfactory,
boolean doIndexing)
{
super(mgr, source, dtmIdentity, whiteSpaceFilter,
xstringfactory, doIndexing);
// NEVER track source locators for RTFs; they aren't meaningful. I think.
// (If we did track them, we'd need to tail-prune these too.)
//com.sun.org.apache.xalan.internal.processor.TransformerFactoryImpl.m_source_location;
m_useSourceLocationProperty=false;
m_sourceSystemId = (m_useSourceLocationProperty) ? new StringVector()
: null;
m_sourceLine = (m_useSourceLocationProperty) ? new IntVector() : null;
m_sourceColumn = (m_useSourceLocationProperty) ? new IntVector() : null;
// Record initial sizes of fields that are pushed and restored
// for RTF tail-pruning. More entries can be popped than pushed, so
// we need this to mark the primordial state of the DTM.
m_emptyNodeCount = m_size;
m_emptyNSDeclSetCount = (m_namespaceDeclSets == null)
? 0 : m_namespaceDeclSets.size();
m_emptyNSDeclSetElemsCount = (m_namespaceDeclSetElements == null)
? 0 : m_namespaceDeclSetElements.size();
m_emptyDataCount = m_data.size();
m_emptyCharsCount = m_chars.size();
m_emptyDataQNCount = m_dataOrQName.size();
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:30,代码来源:SAX2RTFDTM.java
示例3: SAX2DTM2
import com.sun.org.apache.xml.internal.utils.XMLStringFactory; //导入依赖的package包/类
/**
* Construct a SAX2DTM2 object using the default block size.
*/
public SAX2DTM2(DTMManager mgr, Source source, int dtmIdentity,
DTMWSFilter whiteSpaceFilter,
XMLStringFactory xstringfactory,
boolean doIndexing)
{
this(mgr, source, dtmIdentity, whiteSpaceFilter,
xstringfactory, doIndexing, DEFAULT_BLOCKSIZE, true, true, false);
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:SAX2DTM2.java
示例4: newInstance
import com.sun.org.apache.xml.internal.utils.XMLStringFactory; //导入依赖的package包/类
public static DTMManager newInstance(XMLStringFactory xsf, boolean useServicesMechanism)
throws DTMConfigurationException
{
DTMManager factoryImpl = null;
try
{
if (useServicesMechanism) {
factoryImpl = (DTMManager) ObjectFactory
.createObject(defaultPropName, defaultClassName);
} else {
factoryImpl = new com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault();
}
}
catch (ConfigurationError e)
{
throw new DTMConfigurationException(XMLMessages.createXMLMessage(
XMLErrorResources.ER_NO_DEFAULT_IMPL, null), e.getException());
//"No default implementation found");
}
if (factoryImpl == null)
{
throw new DTMConfigurationException(XMLMessages.createXMLMessage(
XMLErrorResources.ER_NO_DEFAULT_IMPL, null));
//"No default implementation found");
}
factoryImpl.setXMLStringFactory(xsf);
return factoryImpl;
}
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:32,代码来源:DTMManager.java
示例5: DOM2DTM
import com.sun.org.apache.xml.internal.utils.XMLStringFactory; //导入依赖的package包/类
/**
* Construct a DOM2DTM object from a DOM node.
*
* @param mgr The DTMManager who owns this DTM.
* @param domSource the DOM source that this DTM will wrap.
* @param dtmIdentity The DTM identity ID for this DTM.
* @param whiteSpaceFilter The white space filter for this DTM, which may
* be null.
* @param xstringfactory XMLString factory for creating character content.
* @param doIndexing true if the caller considers it worth it to use
* indexing schemes.
*/
public DOM2DTM(DTMManager mgr, DOMSource domSource,
int dtmIdentity, DTMWSFilter whiteSpaceFilter,
XMLStringFactory xstringfactory,
boolean doIndexing)
{
super(mgr, domSource, dtmIdentity, whiteSpaceFilter,
xstringfactory, doIndexing);
// Initialize DOM navigation
m_pos=m_root = domSource.getNode();
// Initialize DTM navigation
m_last_parent=m_last_kid=NULL;
m_last_kid=addNode(m_root, m_last_parent,m_last_kid, NULL);
// Apparently the domSource root may not actually be the
// Document node. If it's an Element node, we need to immediately
// add its attributes. Adapted from nextNode().
// %REVIEW% Move this logic into addNode and recurse? Cleaner!
//
// (If it's an EntityReference node, we're probably scrod. For now
// I'm just hoping nobody is ever quite that foolish... %REVIEW%)
//
// %ISSUE% What about inherited namespaces in this case?
// Do we need to special-case initialize them into the DTM model?
if(ELEMENT_NODE == m_root.getNodeType())
{
NamedNodeMap attrs=m_root.getAttributes();
int attrsize=(attrs==null) ? 0 : attrs.getLength();
if(attrsize>0)
{
int attrIndex=NULL; // start with no previous sib
for(int i=0;i<attrsize;++i)
{
// No need to force nodetype in this case;
// addNode() will take care of switching it from
// Attr to Namespace if necessary.
attrIndex=addNode(attrs.item(i),0,attrIndex,NULL);
m_firstch.setElementAt(DTM.NULL,attrIndex);
}
// Terminate list of attrs, and make sure they aren't
// considered children of the element
m_nextsib.setElementAt(DTM.NULL,attrIndex);
// IMPORTANT: This does NOT change m_last_parent or m_last_kid!
} // if attrs exist
} //if(ELEMENT_NODE)
// Initialize DTM-completed status
m_nodesAreProcessed = false;
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:63,代码来源:DOM2DTM.java
注:本文中的com.sun.org.apache.xml.internal.utils.XMLStringFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论