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/SmallPrefixedNameSet.java
package com.ctc.wstx.dtd; import com.ctc.wstx.util.PrefixedName; /** * PrefixedNameSet implementation suitable for storing small set of PrefixedName * values (generally 8 or less). Uses linear search, and is thus the * most compact presentation for a set *<p> * Notes about usage: * <ul> * <li>All Strings contained in {@link PrefixedName} instances are assumed * interned, so that equality comparison can be done (both for values * stored and keys used) * </li> * <li>It is assumed that sets are never empty, ie. always contain at * least one entry. * </li> * <li>It is assumed that caller has ensured that there are no duplicates * in the set -- this data structure does no further validation. * </li> * </ul> */ public final class SmallPrefixedNameSet extends PrefixedNameSet { final boolean mNsAware; final String[] mStrings; public SmallPrefixedNameSet(boolean nsAware, PrefixedName[] names) { mNsAware = nsAware; int len = names.length; if (len == 0) { // sanity check throw new IllegalStateException("Trying to construct empty PrefixedNameSet"); } mStrings = new String[nsAware ? (len+len) : len]; for (int out = 0, in = 0; in < len; ++in) { PrefixedName nk = names[in]; if (nsAware) { mStrings[out++] = nk.getPrefix(); } mStrings[out++] = nk.getLocalName(); } } @Override public boolean hasMultiple() { return mStrings.length > 1; } /** * @return True if the set contains specified name; false if not. */ @Override public boolean contains(PrefixedName name) { int len = mStrings.length; String ln = name.getLocalName(); String[] strs = mStrings; if (mNsAware) { String prefix = name.getPrefix(); if (strs[1] == ln && strs[0] == prefix) { return true; } for (int i = 2; i < len; i += 2) { if (strs[i+1] == ln && strs[i] == prefix) { return true; } } } else { if (strs[0] == ln) { return true; } for (int i = 1; i < len; ++i) { if (strs[i] == ln) { return true; } } } return false; } @Override public void appendNames(StringBuilder sb, String sep) { for (int i = 0; i < mStrings.length; ) { if (i > 0) { sb.append(sep); } if (mNsAware) { String prefix = mStrings[i++]; if (prefix != null) { sb.append(prefix); sb.append(':'); } } sb.append(mStrings[i++]); // lgtm [java/index-out-of-bounds] } } }
⏎ com/ctc/wstx/dtd/SmallPrefixedNameSet.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, 3187👍, 0💬
Popular Posts:
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
itextpdf.jar is a component in iText 5 Java library to provide core functionalities. iText Java libr...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool. JDK 11 JDI tool com...
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...