gpt4 book ai didi

com.ctc.wstx.evt.WDTD类的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 04:37:05 37 4
gpt4 key购买 nike

本文整理了Java中com.ctc.wstx.evt.WDTD类的一些代码示例,展示了WDTD类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WDTD类的具体详情如下:
包路径:com.ctc.wstx.evt.WDTD
类名称:WDTD

WDTD介绍

[英]Event that contains all StAX accessible information read from internal and external DTD subsets.
[中]包含从内部和外部DTD子集读取的所有StAX可访问信息的事件。

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

/**
 * Note: constructing DTD events this way means that there will be no
 * internal presentation of actual DTD; no parsing is implied by
 * construction.
 */
public DTD createDTD(String dtd) {
  return new WDTD(mLocation, dtd);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

public String getDocumentTypeDeclaration()
{
  if (mFullText == null) {
    int len = 60;
    if (mInternalSubset != null) {
      len += mInternalSubset.length() + 4;
    }
    StringWriter sw = new StringWriter(len);
    try {
      writeAsEncodedUnicode(sw);
    } catch (XMLStreamException sex) { // should never happen
      throw new Error(ErrorConsts.ERR_INTERNAL + ": "+sex);
    }
    mFullText = sw.toString();
  }
  return mFullText;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

public void writeUsing(XMLStreamWriter w) throws XMLStreamException
{
  /* 07-Feb-2005, TSa: We need to make use of StAX2 extensions,
   *   if possible...
   */
  if (w instanceof XMLStreamWriter2) {
    /* Information might not have come from an advanced implementation
     * however?
     */
    if (mRootName != null) {
      XMLStreamWriter2 sw2 = (XMLStreamWriter2) w;
      sw2.writeDTD(mRootName, mSystemId, mPublicId, mInternalSubset);
      return;
    }
  }
  // Nah, just need to do a "dumb" write...
  w.writeDTD(getDocumentTypeDeclaration());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

throwFromIOE(ie);

代码示例来源:origin: woodstox/wstx-lgpl

public String getDocumentTypeDeclaration()
{
  if (mFullText == null) {
    int len = 60;
    if (mInternalSubset != null) {
      len += mInternalSubset.length() + 4;
    }
    StringWriter sw = new StringWriter(len);
    try {
      writeAsEncodedUnicode(sw);
    } catch (XMLStreamException sex) { // should never happen
      throw new Error(ErrorConsts.ERR_INTERNAL + ": "+sex);
    }
    mFullText = sw.toString();
  }
  return mFullText;
}

代码示例来源:origin: woodstox/wstx-asl

public void writeUsing(XMLStreamWriter w) throws XMLStreamException
{
  /* 07-Feb-2005, TSa: We need to make use of StAX2 extensions,
   *   if possible...
   */
  if (w instanceof XMLStreamWriter2) {
    /* Information might not have come from an advanced implementation
     * however?
     */
    if (mRootName != null) {
      XMLStreamWriter2 sw2 = (XMLStreamWriter2) w;
      sw2.writeDTD(mRootName, mSystemId, mPublicId, mInternalSubset);
      return;
    }
  }
  // Nah, just need to do a "dumb" write...
  w.writeDTD(getDocumentTypeDeclaration());
}

代码示例来源:origin: woodstox/wstx-asl

throwFromIOE(ie);

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

XMLStreamReader2 sr2 = (XMLStreamReader2) r;
  DTDInfo dtd = sr2.getDTDInfo();
  return new WDTD(loc,
          dtd.getDTDRootName(),
          dtd.getDTDSystemId(), dtd.getDTDPublicId(),
return new WDTD(loc, null, r.getText());

代码示例来源:origin: woodstox/wstx-asl

public String getDocumentTypeDeclaration()
{
  if (mFullText == null) {
    int len = 60;
    if (mInternalSubset != null) {
      len += mInternalSubset.length() + 4;
    }
    StringWriter sw = new StringWriter(len);
    try {
      writeAsEncodedUnicode(sw);
    } catch (XMLStreamException sex) { // should never happen
      throw new Error(ErrorConsts.ERR_INTERNAL + ": "+sex);
    }
    mFullText = sw.toString();
  }
  return mFullText;
}

代码示例来源:origin: woodstox/wstx-lgpl

public void writeUsing(XMLStreamWriter w) throws XMLStreamException
{
  /* 07-Feb-2005, TSa: We need to make use of StAX2 extensions,
   *   if possible...
   */
  if (w instanceof XMLStreamWriter2) {
    /* Information might not have come from an advanced implementation
     * however?
     */
    if (mRootName != null) {
      XMLStreamWriter2 sw2 = (XMLStreamWriter2) w;
      sw2.writeDTD(mRootName, mSystemId, mPublicId, mInternalSubset);
      return;
    }
  }
  // Nah, just need to do a "dumb" write...
  w.writeDTD(getDocumentTypeDeclaration());
}

代码示例来源:origin: woodstox/wstx-lgpl

throwFromIOE(ie);

代码示例来源:origin: woodstox/wstx-asl

public DTD2 createDTD(String rootName, String sysId, String pubId,
           String intSubset)
{
  return new WDTD(mLocation, rootName, sysId, pubId, intSubset);
}

代码示例来源:origin: woodstox/wstx-lgpl

/**
 * Note: constructing DTD events this way means that there will be no
 * internal presentation of actual DTD; no parsing is implied by
 * construction.
 */
public DTD createDTD(String dtd) {
  return new WDTD(mLocation, dtd);
}

代码示例来源:origin: Nextdoor/bender

/**
 * Note: constructing DTD events this way means that there will be no
 * internal presentation of actual DTD; no parsing is implied by
 * construction.
 */
@Override
public DTD createDTD(String dtd) {
  return new WDTD(mLocation, dtd);
}

代码示例来源:origin: FasterXML/woodstox

/**
 * Note: constructing DTD events this way means that there will be no
 * internal presentation of actual DTD; no parsing is implied by
 * construction.
 */
@Override
public DTD createDTD(String dtd) {
  return new WDTD(mLocation, dtd);
}

代码示例来源:origin: woodstox/wstx-asl

public DTD2 createDTD(String rootName, String sysId, String pubId,
           String intSubset, Object processedDTD)
{
  return new WDTD(mLocation, rootName, sysId, pubId, intSubset,
          (DTDSubset) processedDTD);
}

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

/**
 * Note: constructing DTD events this way means that there will be no
 * internal presentation of actual DTD; no parsing is implied by
 * construction.
 */
public DTD createDTD(String dtd) {
  return new WDTD(mLocation, dtd);
}

代码示例来源:origin: woodstox/wstx-lgpl

public DTD2 createDTD(String rootName, String sysId, String pubId,
           String intSubset)
{
  return new WDTD(mLocation, rootName, sysId, pubId, intSubset);
}

代码示例来源:origin: woodstox/wstx-lgpl

public DTD2 createDTD(String rootName, String sysId, String pubId,
           String intSubset, Object processedDTD)
{
  return new WDTD(mLocation, rootName, sysId, pubId, intSubset,
          (DTDSubset) processedDTD);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

/**
 * Note: constructing DTD events this way means that there will be no
 * internal presentation of actual DTD; no parsing is implied by
 * construction.
 */
public DTD createDTD(String dtd) {
  return new WDTD(mLocation, dtd);
}

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com