7980818283848586
InputStream is = new FileInputStream(d.getSourceName()); currentInputStream = is; return is; } } catch (Exception e) { throw new WVToolIOException("Could not open stream.", e); } }
93949596979899100101
try { if (currentInputStream != null) currentInputStream.close(); } catch (IOException e) { throw new WVToolIOException("Could not close strean.", e); } }
5354555657585960
/** Close the resource from which the given document has been read. */ public void close(WVTDocumentInfo d) throws WVToolException { try { stream.close(); } catch (IOException e) { throw new WVToolIOException("Could not close stream", e); } }
6162636465666768
try { return new TagIgnoringReader(reader); } catch (IOException e) { WVToolLogger.getGlobalLogger().logException("Could not read stream", e); throw new WVToolIOException("TagIgnoringReader could not read the source:", e); } }