コード例 #1
0
 protected InputSource createInputSource(String importURI) {
   InputSource inputSource = new InputSource(importURI);
   byte[] entry = archive.getEntry(importURI);
   if (entry != null) {
     inputSource.setByteStream(new ByteArrayInputStream(entry));
   }
   return inputSource;
 }
コード例 #2
0
 protected InputSource createInputSource(String documentLocation) {
   InputSource inputSource = new InputSource(documentLocation);
   byte[] entry = archive.getEntry(documentLocation);
   if (entry != null) inputSource.setByteStream(new ByteArrayInputStream(entry));
   return inputSource;
 }