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; }
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; }