public void addInput(String port, InputStream inputStream, String uri, Type type, String contentType) throws IOException { inputStream = new BufferedInputStream(inputStream); contentType = ((contentType == null) || "content/unknown".equals(contentType)) ? guessContentTypeFromStream(inputStream) : contentType; contentType = ((contentType == null) || "content/unknown".equals(contentType)) ? guessContentTypeFromName(uri) : contentType; curStep.addInput(port, inputStream, uri, type, contentType); }
public void addParam(String name, String value) { needsCheck = true; String port = "*"; int cpos = name.indexOf("@"); if (cpos > 0) { port = name.substring(0, cpos); name = name.substring(cpos + 1); } curStep.addParameter(port, name, value); }
stepName = makeQName(plainStepName); if ("".equals(stepName.getNamespaceURI())) { stepName = new QName("p", "http://www.w3.org/ns/xproc", stepName.getLocalName()); QName name = makeQName(plainOption.getKey()); if (options.containsKey(name)) { throw new XProcException("Duplicate option name: '" + name + "'."); Map<QName, String> portParams = new HashMap<QName, String>(); for (Entry<String, String> portParam : plainParam.getValue().entrySet()) { QName name = makeQName(portParam.getKey()); if (portParams.containsKey(name)) { throw new XProcException("Duplicate parameter name: '" + name + "'.");
stepName = makeQName(plainStepName); if ("".equals(stepName.getNamespaceURI())) { stepName = new QName("p", "http://www.w3.org/ns/xproc", stepName.getLocalName()); QName name = makeQName(plainOption.getKey()); if (options.containsKey(name)) { throw new XProcException("Duplicate option name: '" + name + "'."); Map<QName, String> portParams = new HashMap<QName, String>(); for (Entry<String, String> portParam : plainParam.getValue().entrySet()) { QName name = makeQName(portParam.getKey()); if (portParams.containsKey(name)) { throw new XProcException("Duplicate parameter name: '" + name + "'.");
public void addParam(String port, String name, String value) { needsCheck = true; curStep.addParameter(port, name, value); }
public void addParam(String port, String name, String value) { needsCheck = true; curStep.addParameter(port, name, value); }
public void addParam(String name, String value) { needsCheck = true; String port = "*"; int cpos = name.indexOf("@"); if (cpos > 0) { port = name.substring(0, cpos); name = name.substring(cpos + 1); } curStep.addParameter(port, name, value); }
public void addInput(String port, InputStream inputStream, String uri, Type type, String contentType) throws IOException { inputStream = new BufferedInputStream(inputStream); contentType = ((contentType == null) || "content/unknown".equals(contentType)) ? guessContentTypeFromStream(inputStream) : contentType; contentType = ((contentType == null) || "content/unknown".equals(contentType)) ? guessContentTypeFromName(uri) : contentType; curStep.addInput(port, inputStream, uri, type, contentType); }