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/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, 3357👍, 0💬
Popular Posts:
JDK 11 jrt-fs.jar is the JAR file for JDK 11 JRT-FS (Java RunTime - File System) defined in the "jdk...
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module. JDK 11 Interna...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...