Package com.volantis.xml.sax

Examples of com.volantis.xml.sax.ExtendedSAXException


                serializer.setNextProcess(adapter);
                serializer.setPipeline(getPipeline());
                serializer.startProcess();
            }
        } catch (IOException e) {
            throw new ExtendedSAXException(e);
        }
    }
View Full Code Here


    // javadoc inherited
    public void stopProcess() throws SAXException {
        try {
            closeSerializer();
        } catch (IOException e) {
            throw new ExtendedSAXException(e);
        }
    }
View Full Code Here

        } catch (MalformedURLException e) {
            throw new IllegalStateException(
              "The schema location \"" + schemaLocation + "\" could " +
        "not be resolved against " + baseURI.toExternalForm());
        } catch (IOException e) {
            throw new ExtendedSAXException(e);
        }
    }
View Full Code Here

        } else {
            try {
                resolved = new URL(base, systemId);
            } catch (MalformedURLException e) {
                throw new ExtendedSAXException(e);
            }
        }

        // If none of the above worked then return null.
        if (resolved == null) {
View Full Code Here

            // Get the item.
            try {
                variable.setValue(sequence.getItem(i));
            } catch (SequenceIndexOutOfBoundsException e) {
                throw new ExtendedSAXException(e);
            }

            // Replay the events through the dynamic process.
            player.play(dynamicProcess);
        }
View Full Code Here

                try {
                    expressionContext.getCurrentScope()
                            .declareVariable(variableExpandedName,
                                    sequence.getItem(1));
                } catch (SequenceIndexOutOfBoundsException e) {
                    throw new ExtendedSAXException(e);
                }

                // Remember to pop the block scope off after the content has
                // been processed.
                action = new PopBlockScopeAction();
View Full Code Here

        try {
            Expression expression = parser.parse(expressionAsString);
            Value value = expression.evaluate(expressionContext);
            sequence = value.getSequence();
        } catch (ExpressionException e) {
            throw new ExtendedSAXException(e);
        }
        return sequence;
    }
View Full Code Here

        String resourceFile = (String) jarFileResources.get(systemID);
        if (resourceFile != null) {
            // retrieve a URL to the resource in the jar.
            URL url = getResourceURL(resourceFile);
            if (url == null) {
                throw new ExtendedSAXException("Could not resolve the entity " +
                        systemID);
            } else {
                // create the InputSource
                inputSource = new InputSource(url.toExternalForm());
            }
View Full Code Here

                // check the actual path against the expected
                assertEquals("Tracker has incorrect path " + expectedPath + " " + actualPath,
                             expectedPath,
                             actualPath);
            } catch (Exception e) {
                throw new ExtendedSAXException("Unexpected xpath exception", e);
            }
        }
View Full Code Here

                        new IgnoringSetDocumentLocatorHandler(contentHandler));
                parser.parse(new InputSource(
                        new ByteArrayInputStream(stream.toByteArray())));
            }
        } catch (Exception e) {
            throw new ExtendedSAXException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.sax.ExtendedSAXException

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.