private static OutputStream checkOut(String path) throws IOException { String in = JOrphanUtils.nullifyIfEmptyTrimmed(path); if (in == null) { return null; } else { return new FileOutputStream(path); } }
private static InputStream checkIn(String stdin) throws FileNotFoundException { String in = JOrphanUtils.nullifyIfEmptyTrimmed(stdin); if (in == null) { return null; } else { return new FileInputStream(in); } }