/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public static Edimap digestConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { return new EDIConfigDigester().digestEDIConfig(stream); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public static Edimap digestConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { return new EDIConfigDigester().digestEDIConfig(stream); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public static Edimap digestConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { return new EDIConfigDigester().digestEDIConfig(stream); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public static Edimap digestConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { return new EDIConfigDigester().digestEDIConfig(stream); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public Edimap digestEDIConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { Document configDoc; try { configDoc = XmlUtil.parseStream(stream); } catch (ParserConfigurationException ee) { throw new SAXException("Unable to parse Smooks configuration.", ee); } return digestEDIConfig(configDoc); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public Edimap digestEDIConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { Document configDoc; try { configDoc = XmlUtil.parseStream(stream); } catch (ParserConfigurationException ee) { throw new SAXException("Unable to parse Smooks configuration.", ee); } return digestEDIConfig(configDoc); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public Edimap digestEDIConfig(Reader stream) throws IOException, SAXException, EDIConfigurationException { Document configDoc; try { configDoc = XmlUtil.parseStream(stream); } catch (ParserConfigurationException ee) { throw new SAXException("Unable to parse Smooks configuration.", ee); } return digestEDIConfig(configDoc); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public Edimap digestEDIConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { Document configDoc; try { configDoc = XmlUtil.parseStream(stream); } catch (ParserConfigurationException ee) { throw new SAXException("Unable to parse Smooks configuration.", ee); } return digestEDIConfig(configDoc); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public Edimap digestEDIConfig(Reader stream) throws IOException, SAXException, EDIConfigurationException { Document configDoc; try { configDoc = XmlUtil.parseStream(stream); } catch (ParserConfigurationException ee) { throw new SAXException("Unable to parse Smooks configuration.", ee); } return digestEDIConfig(configDoc); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public Edimap digestEDIConfig(Reader stream) throws IOException, SAXException, EDIConfigurationException { Document configDoc; try { configDoc = XmlUtil.parseStream(stream); } catch (ParserConfigurationException ee) { throw new SAXException("Unable to parse Smooks configuration.", ee); } return digestEDIConfig(configDoc); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public Edimap digestEDIConfig(Reader stream) throws IOException, SAXException, EDIConfigurationException { Document configDoc; try { configDoc = XmlUtil.parseStream(stream); } catch (ParserConfigurationException ee) { throw new SAXException("Unable to parse Smooks configuration.", ee); } return digestEDIConfig(configDoc); }
/** * Digest the XML edi-message-mapping configuration stream. * @param stream the edi-message-mapping stream. * @return the {@link org.milyn.edisax.model.internal.Edimap}. * @throws IOException Error parsing the XML stream. * @throws SAXException Error parsing the XML stream. * @throws EDIConfigurationException Multiple or no namespaces in edi-message-mapping. */ public Edimap digestEDIConfig(InputStream stream) throws IOException, SAXException, EDIConfigurationException { Document configDoc; try { configDoc = XmlUtil.parseStream(stream); } catch (ParserConfigurationException ee) { throw new SAXException("Unable to parse Smooks configuration.", ee); } return digestEDIConfig(configDoc); }
/** * Set the edifact edimap from the mapping model InputStream. * @throws org.milyn.edisax.EDIParseException is thrown when EdifactModel is unable to initialize edimap. * @throws org.milyn.edisax.EDIConfigurationException is thrown when edi-message-mapping contains multiple or no namespace declaration. * @throws java.io.IOException is thrown when error occurs when parsing edi-message-mapping. */ private synchronized void parseSequence() throws EDIConfigurationException, IOException, SAXException { if(edimap != null) { return; } //To prevent circular dependency the name/url of all imported urls are stored in a dependency tree. //If a name/url already exists in a parent node, we have a circular dependency. DependencyTree<String> tree = new DependencyTree<String>(); EDIConfigDigester digester = new EDIConfigDigester(modelURI, importBaseURI); edimap = digester.digestEDIConfig(new StringReader(mappingConfig)); description = edimap.getDescription(); importFiles(tree.getRoot(), edimap, tree); }
/** * Set the edifact edimap from the mapping model InputStream. * @throws org.milyn.edisax.EDIParseException is thrown when EdifactModel is unable to initialize edimap. * @throws org.milyn.edisax.EDIConfigurationException is thrown when edi-message-mapping contains multiple or no namespace declaration. * @throws java.io.IOException is thrown when error occurs when parsing edi-message-mapping. */ private synchronized void parseSequence() throws EDIConfigurationException, IOException, SAXException { if(edimap != null) { return; } //To prevent circular dependency the name/url of all imported urls are stored in a dependency tree. //If a name/url already exists in a parent node, we have a circular dependency. DependencyTree<String> tree = new DependencyTree<String>(); EDIConfigDigester digester = new EDIConfigDigester(modelURI, importBaseURI); edimap = digester.digestEDIConfig(new StringReader(mappingConfig)); description = edimap.getDescription(); importFiles(tree.getRoot(), edimap, tree); }
/** * Set the edifact edimap from the mapping model InputStream. * @throws org.milyn.edisax.EDIParseException is thrown when EdifactModel is unable to initialize edimap. * @throws org.milyn.edisax.EDIConfigurationException is thrown when edi-message-mapping contains multiple or no namespace declaration. * @throws java.io.IOException is thrown when error occurs when parsing edi-message-mapping. */ private synchronized void parseSequence() throws EDIConfigurationException, IOException, SAXException { if(edimap != null) { return; } //To prevent circular dependency the name/url of all imported urls are stored in a dependency tree. //If a name/url already exists in a parent node, we have a circular dependency. DependencyTree<String> tree = new DependencyTree<String>(); EDIConfigDigester digester = new EDIConfigDigester(modelURI, importBaseURI); edimap = digester.digestEDIConfig(new StringReader(mappingConfig)); description = edimap.getDescription(); importFiles(tree.getRoot(), edimap, tree); }
/** * Set the edifact edimap from the mapping model InputStream. * @throws org.milyn.edisax.EDIParseException is thrown when EdifactModel is unable to initialize edimap. * @throws org.milyn.edisax.EDIConfigurationException is thrown when edi-message-mapping contains multiple or no namespace declaration. * @throws java.io.IOException is thrown when error occurs when parsing edi-message-mapping. */ private synchronized void parseSequence() throws EDIConfigurationException, IOException, SAXException { if(edimap != null) { return; } //To prevent circular dependency the name/url of all imported urls are stored in a dependency tree. //If a name/url already exists in a parent node, we have a circular dependency. DependencyTree<String> tree = new DependencyTree<String>(); EDIConfigDigester digester = new EDIConfigDigester(modelURI, importBaseURI); edimap = digester.digestEDIConfig(new StringReader(mappingConfig)); description = edimap.getDescription(); importFiles(tree.getRoot(), edimap, tree); }
EDIConfigDigester digester = new EDIConfigDigester(importUri, URIResourceLocator.extractBaseURI(importUri)); importedEdimap = digester.digestEDIConfig(new URIResourceLocator().getResource(importUri.toString())); importFiles(child, importedEdimap, tree); importedSegments = createImportMap(importedEdimap);
EDIConfigDigester digester = new EDIConfigDigester(importUri, URIResourceLocator.extractBaseURI(importUri)); importedEdimap = digester.digestEDIConfig(new URIResourceLocator().getResource(importUri.toString())); importFiles(child, importedEdimap, tree); importedSegments = createImportMap(importedEdimap);
EDIConfigDigester digester = new EDIConfigDigester(importUri, URIResourceLocator.extractBaseURI(importUri)); importedEdimap = digester.digestEDIConfig(new URIResourceLocator().getResource(importUri.toString())); importFiles(child, importedEdimap, tree); importedSegments = createImportMap(importedEdimap);
EDIConfigDigester digester = new EDIConfigDigester(importUri, URIResourceLocator.extractBaseURI(importUri)); importedEdimap = digester.digestEDIConfig(new URIResourceLocator().getResource(importUri.toString())); importFiles(child, importedEdimap, tree); importedSegments = createImportMap(importedEdimap);