Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/util/DefaultXmlSymbolTable.java
package com.ctc.wstx.util;
/**
* Factory class used for instantiating pre-populated XML symbol
* tables. Such tables already have basic String constants that
* XML standard defines.
*/
public final class DefaultXmlSymbolTable
{
/**
* Root symbol table from which child instances are derived.
*/
final static SymbolTable sInstance;
final static String mNsPrefixXml;
final static String mNsPrefixXmlns;
/* Although theoretically there'd be no strict need to pre-populate
* the default table, if all access was done using suggested usage
* patterns (reuse input factories consistently, esp. for same types
* of documents), it is possible some developers just use each factory
* just once. As such, it does matter how tables are pre-populated.
* Thus, let's use limited sensible set of predefined prefixes and
* names.
*/
static {
/* 128 means it's ok without resize up to ~96 symbols; true that
* default symbols added will be interned.
*/
sInstance = new SymbolTable(true, 128);
// Let's add default namespace binding prefixes
mNsPrefixXml = sInstance.findSymbol("xml");
mNsPrefixXmlns = sInstance.findSymbol("xmlns");
/* No need to add keywords, as they are checked directly by
* Reader, without constructing Strings.
*/
// Ok, any common prefixes?
// or local names (element, attribute)?
sInstance.findSymbol("id");
sInstance.findSymbol("name");
// XML Schema?
// prefixes:
sInstance.findSymbol("xsd");
sInstance.findSymbol("xsi");
// local names:
sInstance.findSymbol("type");
// How about some common prefixes and names for Soap?
// commonly used prefixes:
sInstance.findSymbol("soap");
sInstance.findSymbol("SOAP-ENC");
sInstance.findSymbol("SOAP-ENV");
// local names:
sInstance.findSymbol("Body");
sInstance.findSymbol("Envelope");
}
/*
///////////////////////////////////////////////////
// Public API, factory method(s):
///////////////////////////////////////////////////
*/
/**
* Method that will return an instance of SymbolTable that has basic
* XML 1.0 constants pre-populated.
*/
public static SymbolTable getInstance() {
return sInstance.makeChild();
}
/*
///////////////////////////////////////////////////
// Public API, efficient access to (shared)
// constants values:
///////////////////////////////////////////////////
*/
public static String getXmlSymbol() {
return mNsPrefixXml;
}
public static String getXmlnsSymbol() {
return mNsPrefixXmlns;
}
}
⏎ com/ctc/wstx/util/DefaultXmlSymbolTable.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, ≈75🔥, 0💬
Popular Posts:
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...
What Is commons-fileupload-1.3.3 .jar?commons-fileupload-1.3.3 .jaris the JAR file for Apache Common...
maven-compat-3.5.4.jar is the JAR file for Apache Maven 3.5.4 Compact module. The JAR file name may ...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...