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;
 }
Exemple #2
0
 public CommandSource(ProcessBuilder processBuilder, Charset charset) {
   this.processBuilder = processBuilder;
   this.key = DefaultKey.newInstance();
   this.systemId = key.toString();
   this.charset = charset;
 }