本文整理了Java中com.ctc.wstx.io.WstxInputLocation.<init>()
方法的一些代码示例,展示了WstxInputLocation.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WstxInputLocation.<init>()
方法的具体详情如下:
包路径:com.ctc.wstx.io.WstxInputLocation
类名称: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());
}
内容来源于网络,如有侵权,请联系作者删除!