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/ent/IntEntity.java
package com.ctc.wstx.ent; import java.io.IOException; import java.io.Writer; import java.net.URL; import javax.xml.stream.Location; import javax.xml.stream.XMLResolver; import com.ctc.wstx.api.ReaderConfig; import com.ctc.wstx.io.InputSourceFactory; import com.ctc.wstx.io.TextEscaper; import com.ctc.wstx.io.WstxInputLocation; import com.ctc.wstx.io.WstxInputSource; public class IntEntity extends EntityDecl { /** * Location where entity content definition started; * points to the starting/opening quote for internal * entities. */ protected final Location mContentLocation; /** * Replacement text of the entity; full array contents. */ final char[] mRepl; String mReplText = null; public IntEntity(Location loc, String name, URL ctxt, char[] repl, Location defLoc) { super(loc, name, ctxt); mRepl = repl; mContentLocation = defLoc; } public static IntEntity create(String id, String repl) { return create(id, repl.toCharArray()); } public static IntEntity create(String id, char[] val) { WstxInputLocation loc = WstxInputLocation.getEmptyLocation(); return new IntEntity(loc, id, null, val, loc); } @Override public String getNotationName() { return null; } @Override public String getPublicId() { return null; } @Override public String getReplacementText() { String repl = mReplText; if (repl == null) { repl = (mRepl.length == 0) ? "" : new String(mRepl); mReplText = repl; } return mReplText; } @Override public int getReplacementText(Writer w) throws IOException { w.write(mRepl); return mRepl.length; } @Override public String getSystemId() { return null; } /* /////////////////////////////////////////// // Implementation of abstract base methods /////////////////////////////////////////// */ @Override public void writeEnc(Writer w) throws IOException { w.write("<!ENTITY "); w.write(mName); w.write(" \""); TextEscaper.outputDTDText(w, mRepl, 0, mRepl.length); w.write("\">"); } /* /////////////////////////////////////////// // Extended API for Wstx core /////////////////////////////////////////// */ // // // Access to data /** * Gives raw access to replacement text data... *<p> * Note: this is not really safe, as caller can modify the array, but * since this method is thought to provide fast access, let's avoid making * copy here. */ @Override public char[] getReplacementChars() { return mRepl; } // // // Type information @Override public boolean isExternal() { return false; } @Override public boolean isParsed() { return true; } @Override public WstxInputSource expand(WstxInputSource parent, XMLResolver res, ReaderConfig cfg, int xmlVersion) { /* 26-Dec-2006, TSa: Better leave source as null, since internal * entity declaration context should never be used: when expanding, * reference context is to be used. */ return InputSourceFactory.constructCharArraySource //(parent, mName, mRepl, 0, mRepl.length, mContentLocation, getSource()); (parent, mName, mRepl, 0, mRepl.length, mContentLocation, null); } }
⏎ com/ctc/wstx/ent/IntEntity.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, 3199👍, 0💬
Popular Posts:
Where to find answers to frequently asked questions on Downloading and Installing ojdbc.jar - JDBC D...
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...