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/io/CharArraySource.java
package com.ctc.wstx.io; import javax.xml.stream.Location; /** * Input source that reads input from a static char array, usually used * when expanding internal entities. It can also be used if the input * given is a raw character array. */ public final class CharArraySource extends BaseInputSource { int mOffset; // // // Plus, location offset info: final Location mContentStart; protected CharArraySource(WstxInputSource parent, String fromEntity, char[] chars, int offset, int len, Location loc, SystemId sysId) { super(parent, fromEntity, loc.getPublicId(), sysId); //loc.getSystemId()); mBuffer = chars; mOffset = offset; mInputLast = offset + len; mContentStart = loc; } /** * This is a hard-coded assumption, but yes, for now this source is * only created from internal entities. */ @Override public boolean fromInternalEntity() { return true; } /** * Unlike with reader source, we won't start from beginning of a file, * but usually from somewhere in the middle... */ @Override protected void doInitInputLocation(WstxInputData reader) { reader.mCurrInputProcessed = mContentStart.getCharacterOffset(); reader.mCurrInputRow = mContentStart.getLineNumber(); /* 13-Apr-2005, TSa: Since column offsets reported by Location * objects are 1-based, but internally we use 0-based counts, * need to offset this start by 1 to begin with. */ reader.mCurrInputRowStart = -mContentStart.getColumnNumber() + 1; } @Override public int readInto(WstxInputData reader) { /* Shouldn't really try to read after closing, but it may be easier * for caller not to have to keep track of open/close state... */ if (mBuffer == null) { return -1; } /* In general, there are only 2 states; either this has been * read or not. Offset is used as the marker; plus, in case * somehow we get a dummy char source (length of 0), it'll * also prevent any reading. */ int len = mInputLast - mOffset; if (len < 1) { return -1; } reader.mInputBuffer = mBuffer; reader.mInputPtr = mOffset; reader.mInputEnd = mInputLast; // Also, need to note the fact we're done mOffset = mInputLast; return len; } @Override public boolean readMore(WstxInputData reader, int minAmount) { /* Only case where this may work is if we haven't yet been * read from at all. And that should mean caller also has no * existing input... */ if (reader.mInputPtr >= reader.mInputEnd) { int len = mInputLast - mOffset; if (len >= minAmount) { return (readInto(reader) > 0); } } return false; } @Override public void close() { /* Let's help GC a bit, in case there might be back references * to this Object from somewhere... */ mBuffer = null; } @Override public void closeCompletely() { close(); } }
⏎ com/ctc/wstx/io/CharArraySource.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, 3206👍, 0💬
Popular Posts:
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
Provides support for the runtime platform, core utility methods and the extension registry. JAR File...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...