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/evt/WEntityReference.java

package com.ctc.wstx.evt;

import javax.xml.stream.Location;
import javax.xml.stream.events.EntityReference;
import javax.xml.stream.events.EntityDeclaration;

import org.codehaus.stax2.ri.evt.EntityReferenceEventImpl;

/**
 * We need a slightly specialized version to support concept of
 * undeclared entities, which can be used in (non-default, non-standard)
 * mode where undeclared entities are allowed to be handled.
 */
public class WEntityReference
    extends EntityReferenceEventImpl
    implements EntityReference
{
    final String mName;

    public WEntityReference(Location loc, EntityDeclaration decl)
    {
        super(loc, decl);
        mName = null;
    }

    /**
     * This constructor gets called for undeclared/defined entities: we will
     * still know the name (from the reference), but not how it's defined
     * (since it is not defined).
     */
    public WEntityReference(Location loc, String name)
    {
        super(loc, (EntityDeclaration) null);
        mName = name;
    }

    @Override
    public String getName()
    {
        if (mName != null) {
            return mName;
        }
        return super.getName();
    }
}

com/ctc/wstx/evt/WEntityReference.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

Download and Review Woodstox wstx-*.jar

⇑⇑ Woodstox for XML Processing

2023-01-29, 9281👍, 0💬