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/io/InputSourceFactory.java
package com.ctc.wstx.io;
import java.io.Reader;
import java.net.URL;
import javax.xml.stream.Location;
import com.ctc.wstx.api.ReaderConfig;
/**
* Factory class that creates instances of {@link WstxInputSource} to allow
* reading input from various sources.
*/
public final class InputSourceFactory
{
//final static int DEFAULT_BUFFER_LENGTH = 4000;
/**
* @param parent
* @param entityName Name of the entity expanded to create this input
* source: null when source created for the (main level) external
* DTD subset entity.
* @param xmlVersion Optional xml version identifier of the main parsed
* document. Currently only relevant for checking that XML 1.0 document
* does not include XML 1.1 external parsed entities.
* If unknown, no checks will be done.
*/
public static ReaderSource constructEntitySource
(ReaderConfig cfg, WstxInputSource parent, String entityName, InputBootstrapper bs,
String pubId, SystemId sysId, int xmlVersion, Reader r)
{
// true -> do close the underlying Reader at EOF
ReaderSource rs = new ReaderSource
(cfg, parent, entityName, pubId, sysId, r, true);
if (bs != null) {
rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(),
-bs.getInputColumn());
}
return rs;
}
/**
* Factory method used for creating the main-level document reader
* source.
*/
public static BranchingReaderSource constructDocumentSource
(ReaderConfig cfg, InputBootstrapper bs, String pubId, SystemId sysId,
Reader r, boolean realClose)
{
/* To resolve [WSTX-50] need to ensure that P_BASE_URL overrides
* the defaults if/as necessary
*/
URL url = cfg.getBaseURL();
if (url != null) {
sysId = SystemId.construct(url);
}
BranchingReaderSource rs = new BranchingReaderSource(cfg, pubId, sysId, r, realClose);
if (bs != null) {
rs.setInputOffsets(bs.getInputTotal(), bs.getInputRow(),
-bs.getInputColumn());
}
return rs;
}
/**
* Factory method usually used to expand internal parsed entities; in
* which case context remains mostly the same.
*/
public static WstxInputSource constructCharArraySource
(WstxInputSource parent, String fromEntity,
char[] text, int offset, int len, Location loc, URL src)
{
SystemId sysId = SystemId.construct(loc.getSystemId(), src);
return new CharArraySource(parent, fromEntity, text, offset, len, loc, sysId);
}
}
⏎ com/ctc/wstx/io/InputSourceFactory.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, ≈84🔥, 0💬
Popular Posts:
What Is commons-net-ftp-2.0.jar? commons-net-ftp-2.0.jar is the JAR file for Apache Commons Net FTP ...
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
JDK 17 java.xml.jmod is the JMOD file for JDK 17 XML (eXtensible Markup Language) module. JDK 17 XML...
JDK 17 jdk.charsets.jmod is the JMOD file for JDK 17 Charsets module. JDK 17 Charsets module compile...
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...