private static String dump(StringOption option) { try (Reader reader = StringOptionUtil.asReader(option)) { char[] buf = new char[256]; StringBuffer results = new StringBuffer(); while (true) { int read = reader.read(buf); if (read < 0) { break; } results.append(buf, 0, read); } return results.toString(); } catch (IOException e) { throw new AssertionError(e); } } }