public DefaultJaxpStreamSource(Source source) { this.source = source; this.key = DefaultKey.newInstance(); if (source instanceof javax.xml.transform.stream.StreamSource) { javax.xml.transform.stream.StreamSource stream = (javax.xml.transform.stream.StreamSource) source; this.systemId = stream.getSystemId() == null ? key.toString() : stream.getSystemId(); } else { this.systemId = key.toString(); } this.charset = null; }
public CommandSource(ProcessBuilder processBuilder, Charset charset) { this.processBuilder = processBuilder; this.key = DefaultKey.newInstance(); this.systemId = key.toString(); this.charset = charset; }