private void closeQuietly(Object input, Object output) { if (closeIn) IOUtils.closeQuietly(input); if (closeOut) IOUtils.closeQuietly(output); } }
private void closeQuietly(Object input, Object output) { if (closeIn) IOUtils.closeQuietly(input); if (closeOut) IOUtils.closeQuietly(output); } }
private void closeQuietly(Object input, Object output) { if (closeIn) IOUtils.closeQuietly(input); if (closeOut) IOUtils.closeQuietly(output); } }
/** * Quietly close all specified input streams, output streams, readers, and writers. * * @param o The list of all objects to quietly close. */ public static void closeQuietly(Object...o) { for (Object o2 : o) { if (o2 instanceof InputStream) closeQuietly((InputStream)o2); if (o2 instanceof OutputStream) closeQuietly((OutputStream)o2); if (o2 instanceof Reader) closeQuietly((Reader)o2); if (o2 instanceof Writer) closeQuietly((Writer)o2); } }
/** * Quietly close all specified input streams, output streams, readers, and writers. * * @param o The list of all objects to quietly close. */ public static void closeQuietly(Object...o) { for (Object o2 : o) { if (o2 instanceof InputStream) closeQuietly((InputStream)o2); if (o2 instanceof OutputStream) closeQuietly((OutputStream)o2); if (o2 instanceof Reader) closeQuietly((Reader)o2); if (o2 instanceof Writer) closeQuietly((Writer)o2); } }
/** * Quietly close all specified input streams, output streams, readers, and writers. * * @param o The list of all objects to quietly close. */ public static void closeQuietly(Object...o) { for (Object o2 : o) { if (o2 instanceof InputStream) closeQuietly((InputStream)o2); if (o2 instanceof OutputStream) closeQuietly((OutputStream)o2); if (o2 instanceof Reader) closeQuietly((Reader)o2); if (o2 instanceof Writer) closeQuietly((Writer)o2); } }
/** * Destroys the underlying process. * * <p> * This method is only needed if the {@link #getScanner()} method was used. */ private void close() { closeQuietly(logWriters, outWriters); if (p != null) p.destroy(); }
/** * Destroys the underlying process. * * <p> * This method is only needed if the {@link #getScanner()} method was used. */ private void close() { closeQuietly(logWriters, outWriters); if (p != null) p.destroy(); }
/** * Destroys the underlying process. * * <p> * This method is only needed if the {@link #getScanner()} method was used. */ private void close() { closeQuietly(logWriters, outWriters); if (p != null) p.destroy(); }