com.ctc.wstx.io.WstxInputLocation.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(86)

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

WstxInputLocation.<init>介绍

暂无

代码示例

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

protected Location getLocation()
{
  return new WstxInputLocation(null, mPublicId, mSystemId,
      mInputProcessed + mInputPtr - 1,
      mInputRow, mInputPtr - mInputRowStart);
}

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

protected Location getLocation()
{
  /* Ok; for fixed-size multi-byte encodings, need to divide numbers
   * to get character locations. For variable-length encodings the
   * good thing is that xml declaration only uses shortest codepoints,
   * ie. char count == byte count.
   */
  int total = mInputProcessed + mInputPtr;
  int col = mInputPtr - mInputRowStart;
  if (mBytesPerChar > 1) {
    total /= mBytesPerChar;
    col /= mBytesPerChar;
  }
  return new WstxInputLocation(null, mPublicId, mSystemId,
                 total - 1, // 0-based
                 mInputRow, col);
}

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

public XMLStreamLocation2 getLocation()
{
  return new WstxInputLocation(null, // no parent
      null, (String) null, // pub/sys ids not yet known
      mWriter.getAbsOffset(),
      mWriter.getRow(), mWriter.getColumn());
}

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

public final WstxInputLocation getLocation(long total, int row, int col)
  {
    WstxInputLocation pl;

    if (mParent == null) {
      pl = null;
    } else {
      /* 13-Apr-2005, TSa: We can actually reuse parent location, since
       *   it can not change during lifetime of this child context...
       */
      pl = mParentLocation;
      if (pl == null) {
        mParentLocation = pl = mParent.getLocation();
      }
      pl = mParent.getLocation();
    }
    /* !!! 15-Apr-2005, TSa: This will cause overflow for total count,
     *   but since StAX 1.0 API doesn't have any way to deal with that,
     *   let's just let that be...
     */
    return new WstxInputLocation(pl, getPublicId(), getSystemId(),
                   total, row, col);
  }
}

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

@Override
protected Location getLocation()
{
  return new WstxInputLocation(null, mPublicId, mSystemId,
      mInputProcessed + mInputPtr - 1,
      mInputRow, mInputPtr - mInputRowStart);
}

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

protected Location getLocation()
{
  return new WstxInputLocation(null, mPublicId, mSystemId,
                 mInputProcessed + mInputPtr - 1,
                 mInputRow, mInputPtr - mInputRowStart);
}

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

protected Location getLocation()
{
  return new WstxInputLocation(null, mPublicId, mSystemId,
                 mInputProcessed + mInputPtr - 1,
                 mInputRow, mInputPtr - mInputRowStart);
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

@Override
protected Location getLocation()
{
  return new WstxInputLocation(null, mPublicId, mSystemId,
      mInputProcessed + mInputPtr - 1,
      mInputRow, mInputPtr - mInputRowStart);
}

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

protected Location getLocation()
{
  return new WstxInputLocation(null, mPublicId, mSystemId,
                 mInputProcessed + mInputPtr - 1,
                 mInputRow, mInputPtr - mInputRowStart);
}

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

protected Location getLocation()
{
  return new WstxInputLocation(null, mPublicId, mSystemId,
      mInputProcessed + mInputPtr - 1,
      mInputRow, mInputPtr - mInputRowStart);
}

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

@Override
protected Location getLocation()
{
  return new WstxInputLocation(null, mPublicId, mSystemId,
      mInputProcessed + mInputPtr - 1,
      mInputRow, mInputPtr - mInputRowStart);
}

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

protected Location getLocation()
{
  /* Ok; for fixed-size multi-byte encodings, need to divide numbers
   * to get character locations. For variable-length encodings the
   * good thing is that xml declaration only uses shortest codepoints,
   * ie. char count == byte count.
   */
  int total = mInputProcessed + mInputPtr;
  int col = mInputPtr - mInputRowStart;
  if (mBytesPerChar > 1) {
    total /= mBytesPerChar;
    col /= mBytesPerChar;
  }
  return new WstxInputLocation(null, mPublicId, mSystemId,
                 total - 1, // 0-based
                 mInputRow, col);
}

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

protected Location getLocation()
{
  /* Ok; for fixed-size multi-byte encodings, need to divide numbers
   * to get character locations. For variable-length encodings the
   * good thing is that xml declaration only uses shortest codepoints,
   * ie. char count == byte count.
   */
  int total = mInputProcessed + mInputPtr;
  int col = mInputPtr - mInputRowStart;
  if (mBytesPerChar > 1) {
    total /= mBytesPerChar;
    col /= mBytesPerChar;
  }
  return new WstxInputLocation(null, mPublicId, mSystemId,
                 total - 1, // 0-based
                 mInputRow, col);
}

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

@Override
public XMLStreamLocation2 getLocation()
{
  return new WstxInputLocation(null, // no parent
      null, (String) null, // pub/sys ids not yet known
      mWriter.getAbsOffset(),
      mWriter.getRow(), mWriter.getColumn());
}

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

public XMLStreamLocation2 getLocation()
{
  return new WstxInputLocation(null, // no parent
                 null, null, // pub/sys ids not yet known
                 mWriter.getAbsOffset(),
                 mWriter.getRow(), mWriter.getColumn());
}

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

@Override
public XMLStreamLocation2 getLocation()
{
  return new WstxInputLocation(null, // no parent
      null, (String) null, // pub/sys ids not yet known
      mWriter.getAbsOffset(),
      mWriter.getRow(), mWriter.getColumn());
}

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

public XMLStreamLocation2 getLocation()
{
  return new WstxInputLocation(null, // no parent
                 null, null, // pub/sys ids not yet known
                 mWriter.getAbsOffset(),
                 mWriter.getRow(), mWriter.getColumn());
}

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

public XMLStreamLocation2 getLocation()
{
  return new WstxInputLocation(null, // no parent
      null, (String) null, // pub/sys ids not yet known
      mWriter.getAbsOffset(),
      mWriter.getRow(), mWriter.getColumn());
}

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

public XMLStreamLocation2 getLocation()
{
  return new WstxInputLocation(null, // no parent
                 null, null, // pub/sys ids not yet known
                 mWriter.getAbsOffset(),
                 mWriter.getRow(), mWriter.getColumn());
}

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

@Override
public XMLStreamLocation2 getLocation()
{
  return new WstxInputLocation(null, // no parent
      null, (String) null, // pub/sys ids not yet known
      mWriter.getAbsOffset(),
      mWriter.getRow(), mWriter.getColumn());
}

相关文章