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/stax/WstxEventFactory.java
/* Woodstox XML processor
*
* Copyright (c) 2004 Tatu Saloranta, tatu.saloranta@iki.fi
*
* Licensed under the License specified in file LICENSE, included with
* the source code.
* You may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ctc.wstx.stax;
import java.util.Iterator;
import javax.xml.namespace.NamespaceContext;
import javax.xml.namespace.QName;
import javax.xml.stream.*;
import javax.xml.stream.events.*;
import aQute.bnd.annotation.spi.ServiceProvider;
import org.codehaus.stax2.ri.Stax2EventFactoryImpl;
import com.ctc.wstx.compat.QNameCreator;
import com.ctc.wstx.evt.*;
import static aQute.bnd.annotation.Resolution.OPTIONAL;
/**
* Implementation of {@link XMLEventFactory} to be used with
* Woodstox. Contains minimal additions on top of Stax2 RI.
*/
@ServiceProvider(value = XMLEventFactory.class, resolution = OPTIONAL)
public final class WstxEventFactory
extends Stax2EventFactoryImpl
{
public WstxEventFactory() {
super();
}
/*
/////////////////////////////////////////////////////////////
// XMLEventFactory API
/////////////////////////////////////////////////////////////
*/
//public Attribute createAttribute(QName name, String value)
//public Attribute createAttribute(String localName, String value)
//public Attribute createAttribute(String prefix, String nsURI, String localName, String value)
//public Characters createCData(String content);
//public Characters createCharacters(String content);
//public Comment createComment(String text);
/**
* Note: constructing DTD events this way means that there will be no
* internal presentation of actual DTD; no parsing is implied by
* construction.
*/
@Override
public DTD createDTD(String dtd) {
return new WDTD(mLocation, dtd);
}
//public EndDocument createEndDocument()
//public EndElement createEndElement(QName name, Iterator namespaces)
//public EndElement createEndElement(String prefix, String nsURI, String localName)
//public EndElement createEndElement(String prefix, String nsURI, String localName, Iterator ns)
//public EntityReference createEntityReference(String name, EntityDeclaration decl)
//public Characters createIgnorableSpace(String content)
//public Namespace createNamespace(String nsURI)
//public Namespace createNamespace(String prefix, String nsUri)
//public ProcessingInstruction createProcessingInstruction(String target, String data)
//public Characters createSpace(String content)
//public StartDocument createStartDocument()
//public StartDocument createStartDocument(String encoding)
//public StartDocument createStartDocument(String encoding, String version)
//public StartDocument createStartDocument(String encoding, String version, boolean standalone)
//public StartElement createStartElement(QName name, Iterator attr, Iterator ns)
//public StartElement createStartElement(String prefix, String nsURI, String localName)
//public StartElement createStartElement(String prefix, String nsURI, String localName, Iterator attr, Iterator ns)
//public StartElement createStartElement(String prefix, String nsURI, String localName, Iterator attr, Iterator ns, NamespaceContext nsCtxt)
/*
/////////////////////////////////////////////////////////////
// Internal/helper methods
/////////////////////////////////////////////////////////////
*/
@Override
protected QName createQName(String nsURI, String localName) {
return new QName(nsURI, localName);
}
@Override
protected QName createQName(String nsURI, String localName, String prefix) {
// [WSTX-174]: some old app servers missing 3-arg QName ctor
return QNameCreator.create(nsURI, localName, prefix);
}
/**
* Must override this method to use a more efficient StartElement
* implementation
*/
@SuppressWarnings("unchecked")
@Override
protected StartElement createStartElement(QName name, Iterator<?> attr,
Iterator<?> ns, NamespaceContext ctxt)
{
return SimpleStartElement.construct(mLocation, name,
(Iterator<Attribute>) attr,
(Iterator<Namespace>) ns, ctxt);
}
}
⏎ com/ctc/wstx/stax/WstxEventFactory.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, ≈46🔥, 0💬
Popular Posts:
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
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 17 java.naming.jmod is the JMOD file for JDK 17 Naming module. JDK 17 Naming module compiled cla...