/** * Public constructor. * <p/> * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(java.io.InputStream)}. * <p/> * Additional resource configurations can be added through calls to * <code>addConfigurations</code> method set. * * @param resourceConfigStream XML resource configuration stream. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. * @see SmooksResourceConfiguration */ public Smooks(InputStream resourceConfigStream) throws IOException, SAXException { this(); context.setResourceLocator(new URIResourceLocator()); addConfigurations(resourceConfigStream); }
/** * Public constructor. * <p/> * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(java.io.InputStream)}. * <p/> * Additional resource configurations can be added through calls to * <code>addConfigurations</code> method set. * * @param resourceConfigStream XML resource configuration stream. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. * @see SmooksResourceConfiguration */ public Smooks(InputStream resourceConfigStream) throws IOException, SAXException { this(); context.setResourceLocator(new URIResourceLocator()); addConfigurations(resourceConfigStream); }
/** * Public constructor. * <p/> * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(java.io.InputStream)}. * <p/> * Additional resource configurations can be added through calls to * <code>addConfigurations</code> method set. * * @param resourceConfigStream XML resource configuration stream. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. * @see SmooksResourceConfiguration */ public Smooks(InputStream resourceConfigStream) throws IOException, SAXException { this(); context.setResourceLocator(new URIResourceLocator()); addConfigurations(resourceConfigStream); }
/** * Public constructor. * * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(java.io.InputStream)}. * * Additional resource configurations can be added through calls to * <code>addConfigurations</code> method set. * * @param resourceConfigStream XML resource configuration stream. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. * @see SmooksResourceConfiguration */ public Smooks(InputStream resourceConfigStream) throws IOException, SAXException { this(); context.setResourceLocator(new URIResourceLocator()); addConfigurations(resourceConfigStream); }
/** * Public constructor. * * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(String)} method, * which resolves the resourceURI parameter using a {@link org.milyn.resource.URIResourceLocator}. * * Additional resource configurations can be added through calls to * {@link #addConfigurations(String)} or {@link #addConfigurations(String,java.io.InputStream)}. * * @param resourceURI XML resource configuration stream URI. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. * @see SmooksResourceConfiguration */ public Smooks(String resourceURI) throws IOException, SAXException { this(); URIResourceLocator resourceLocator = new URIResourceLocator(); resourceLocator.setBaseURI(URIResourceLocator.extractBaseURI(resourceURI)); context.setResourceLocator(resourceLocator); addConfigurations(resourceURI); }
/** * Public constructor. * <p/> * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(String)} method, * which resolves the resourceURI parameter using a {@link org.milyn.resource.URIResourceLocator}. * <p/> * Additional resource configurations can be added through calls to * {@link #addConfigurations(String)} or {@link #addConfigurations(String,java.io.InputStream)}. * * @param resourceURI XML resource configuration stream URI. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. * @see SmooksResourceConfiguration */ public Smooks(String resourceURI) throws IOException, SAXException { this(); URIResourceLocator resourceLocator = new URIResourceLocator(); resourceLocator.setBaseURI(URIResourceLocator.extractBaseURI(resourceURI)); context.setResourceLocator(resourceLocator); addConfigurations(resourceURI); }
/** * Public constructor. * <p/> * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(String)} method, * which resolves the resourceURI parameter using a {@link org.milyn.resource.URIResourceLocator}. * <p/> * Additional resource configurations can be added through calls to * {@link #addConfigurations(String)} or {@link #addConfigurations(String,java.io.InputStream)}. * * @param resourceURI XML resource configuration stream URI. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. * @see SmooksResourceConfiguration */ public Smooks(String resourceURI) throws IOException, SAXException { this(); URIResourceLocator resourceLocator = new URIResourceLocator(); resourceLocator.setBaseURI(URIResourceLocator.extractBaseURI(resourceURI)); context.setResourceLocator(resourceLocator); addConfigurations(resourceURI); }
/** * Public constructor. * <p/> * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(String)} method, * which resolves the resourceURI parameter using a {@link org.milyn.resource.URIResourceLocator}. * <p/> * Additional resource configurations can be added through calls to * {@link #addConfigurations(String)} or {@link #addConfigurations(String,java.io.InputStream)}. * * @param resourceURI XML resource configuration stream URI. * @throws IOException Error reading resource stream. * @throws SAXException Error parsing the resource stream. * @see SmooksResourceConfiguration */ public Smooks(String resourceURI) throws IOException, SAXException { this(); URIResourceLocator resourceLocator = new URIResourceLocator(); resourceLocator.setBaseURI(URIResourceLocator.extractBaseURI(resourceURI)); context.setResourceLocator(resourceLocator); addConfigurations(resourceURI); }