示例#1
0
 public JAXMStreamSource(InputStream is) throws IOException {
   if (is instanceof ByteInputStream) {
     this.in = (ByteInputStream) is;
   } else {
     ByteOutputStream bout = new ByteOutputStream();
     bout.write(is);
     this.in = bout.newInputStream();
   }
 }