Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Woodstox 6.4.0 - Source Code Files
Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website.
You can download them from the "src/main/java" folder.
You can also browse Woodstox Source Code files below:
✍: FYIcenter
⏎ com/ctc/wstx/dtd/TokenModel.java
package com.ctc.wstx.dtd; import java.util.BitSet; import java.util.List; import com.ctc.wstx.util.PrefixedName; /** * Model class that encapsulates a single (obligatory) token instance. */ public final class TokenModel extends ModelNode { final static TokenModel NULL_TOKEN = new TokenModel(null); static { // null token needs to have 0 as its index... NULL_TOKEN.mTokenIndex = 0; } final PrefixedName mElemName; int mTokenIndex = -1; // to catch errors... /* /////////////////////////////////////////////////// // Life-cycle /////////////////////////////////////////////////// */ public TokenModel(PrefixedName elemName) { mElemName = elemName; } public static TokenModel getNullToken() { return NULL_TOKEN; } /* /////////////////////////////////////////////////// // Public API /////////////////////////////////////////////////// */ public PrefixedName getName() { return mElemName; } /** * Method that has to create a deep copy of the model, without * sharing any of existing Objects. */ @Override public ModelNode cloneModel() { return new TokenModel(mElemName); } @Override public boolean isNullable() { return false; } @Override public void indexTokens(List<TokenModel> tokens) { /* Doh. This is not clean... but need to make sure the null * token never gets reindexed or explicitly added: */ if (this != NULL_TOKEN) { int index = tokens.size(); mTokenIndex = index; tokens.add(this); } } @Override public void addFirstPos(BitSet firstPos) { firstPos.set(mTokenIndex); } @Override public void addLastPos(BitSet lastPos) { lastPos.set(mTokenIndex); } @Override public void calcFollowPos(BitSet[] followPosSets) { // nothing to do, for tokens... } @Override public String toString() { return (mElemName == null) ? "[null]" : mElemName.toString(); } /* /////////////////////////////////////////////////// // Internal methods /////////////////////////////////////////////////// */ }
⏎ com/ctc/wstx/dtd/TokenModel.java
Or download all of them as a single archive file:
File name: woodstox-core-6.4.0-fyi.zip File size: 552992 bytes Release date: 2022-10-25 Download
⇒ woodstox-core-6.4.0.jar - Woodstox Core 6.4.0
⇐ What Is Woodstox XML Processing
2023-01-29, 9175👍, 0💬
Popular Posts:
If you are a Java developer, it is very often that you need to use some 3rd party libraries to perfo...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...