/** * Factory method to create a new SAX2RDF. * Use * {@link #getHandlers} or {@link #setHandlersWith} to provide * a {@link StatementHandler}, and usually an {@link org.xml.sax.ErrorHandler} * * @param base The retrieval URL, or the base URI to be * used while parsing. * @return A new SAX2RDF * @throws ParseException */ static public SAX2RDF create(String base) throws SAXParseException { return new SAX2RDF(base,""); } /**
/** * Factory method to create a new SAX2RDF. * Use * {@link #getHandlers} or {@link #setHandlersWith} to provide * a {@link StatementHandler}, and usually an {@link org.xml.sax.ErrorHandler} * * @param base The retrieval URL, or the base URI to be * used while parsing. * @return A new SAX2RDF * @throws ParseException */ static public SAX2RDF create(String base) throws SAXParseException { return new SAX2RDF(base,""); } /**
/** * Factory method to create a new SAX2RDF. * This is particularly * intended for when parsing a non-root element within * an XML document. In which case the application * needs to find this value in the outer context. * Optionally, namespace prefixes can be passed from the * outer context using {@link #startPrefixMapping}. * @param base The retrieval URL, or the base URI to be * used while parsing. Use * {@link #getHandlers} or {@link #setHandlersWith} to provide * a {@link StatementHandler}, and usually an {@link org.xml.sax.ErrorHandler} * @param lang The current value of xml:lang when parsing starts, usually "". * @return A new SAX2RDF * @throws ParseException If base or lang is bad. */ static public SAX2RDF create(String base, String lang) throws SAXParseException { return new SAX2RDF(base,lang); }
/** * Factory method to create a new SAX2RDF. * This is particularly * intended for when parsing a non-root element within * an XML document. In which case the application * needs to find this value in the outer context. * Optionally, namespace prefixes can be passed from the * outer context using {@link #startPrefixMapping}. * @param base The retrieval URL, or the base URI to be * used while parsing. Use * {@link #getHandlers} or {@link #setHandlersWith} to provide * a {@link StatementHandler}, and usually an {@link org.xml.sax.ErrorHandler} * @param lang The current value of xml:lang when parsing starts, usually "". * @return A new SAX2RDF * @throws ParseException If base or lang is bad. */ static public SAX2RDF create(String base, String lang) throws SAXParseException { return new SAX2RDF(base,lang); }