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/exc/WstxLazyException.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.exc;

import javax.xml.stream.XMLStreamException;

/**
 * Alternative exception class Woodstox code uses when it is not allowed
 * to throw an instance of {@link XMLStreamException}; this generally
 * happens when doing lazy parsing.
 */
@SuppressWarnings("serial")
public class WstxLazyException
    extends RuntimeException
{
    final XMLStreamException mOrig;

    public WstxLazyException(XMLStreamException origEx)
    {
        super(origEx.getMessage(), origEx);
        mOrig = origEx;
    }

    public static void throwLazily(XMLStreamException ex)
        throws WstxLazyException
    {
        throw new WstxLazyException(ex);
    }

    /**
     * Need to override this, to be able to dynamically construct and
     * display the location information...
     */
    @Override
    public String getMessage() {
        return "["+getClass().getName()+"] "+mOrig.getMessage();
    }

    @Override
    public String toString() {
        return "["+getClass().getName()+"] "+mOrig.toString();
    }
}

com/ctc/wstx/exc/WstxLazyException.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, 8943👍, 0💬