public Node parse()

in core/src/main/java/org/apache/jsieve/SieveFactory.java [100:115]


    public Node parse(InputStream inputStream) throws ParseException {
        try {
            final SimpleNode node = new SieveParser(inputStream, "UTF-8")
                    .start();
            SieveValidationVisitor visitor = new SieveValidationVisitor(
                    commandManager, testManager, comparatorManager);
            node.jjtAccept(visitor, null);
            return node;
        } catch (ParseException ex) {
            LOGGER.error("Parse failed.", ex);
            throw ex;
        } catch (SieveException ex) {
            LOGGER.error("Parse failed.", ex);
            throw new ParseException(ex.getMessage());
        }
    }