Package com.volantis.xml.pipeline.sax

Examples of com.volantis.xml.pipeline.sax.XMLStreamingException


     * stack
     */
    void popState(TransformationState expected) throws SAXException {
        TransformationState popped = (TransformationState)states.pop();
        if (popped != expected) {
            fatalError(new XMLStreamingException(
                    "Unexpected processing state. Transformation markup " +
                    "invalid", getPipelineContext().getCurrentLocator()));
        }
    }
View Full Code Here


     * @return the current transformation state.
     */
    private TransformationState getCurrentState() throws SAXException {
        TransformationState state = (TransformationState)states.peek();
        if (null == state) {
            fatalError(new XMLStreamingException(
                    "Transformation markup is not well formed",
                    getPipelineContext().getCurrentLocator()));
        }
        return state;
    }
View Full Code Here

        } else if (containingElement != null) {
            try {
                containingElement.getContentWriter(context, null).
                    write(chars, start, length);
            } catch (PAPIException e) {
                fatalError(new XMLStreamingException(
                    "PAPIException encountered during characters event " +
                    "processing",
                    getPipelineContext().getCurrentLocator(),
                    e));
            } catch (IOException e) {
                fatalError(new XMLStreamingException(
                    "IOException encountered during characters event " +
                    "processing (containingElement)",
                    getPipelineContext().getCurrentLocator(),
                    e));
            }
        } else {
            try {
                outputBuffer.getWriter().write(chars, start, length);
            } catch (IOException e) {
                fatalError(new XMLStreamingException(
                    "IOException encountered during characters event " +
                    "processing (outputBuffer)",
                    getPipelineContext().getCurrentLocator(),
                    e));
            }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.XMLStreamingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.