/** * @param os * @param verbose * @throws IOException * @since 3.0.0 */ public void viewFile(OutputStream os, boolean verbose) throws IOException { String indent=""; boolean withSizes = true; displayDirectory(getFs().getRoot(), os, indent, withSizes); if (verbose) { List strings = POIFSViewEngine.inspectViewable(fs, true, 0, " "); Iterator iter = strings.iterator(); while (iter.hasNext()) { os.write( ((String)iter.next()).getBytes()); } } }
Entry entry = it.next(); if (entry instanceof DirectoryNode) { displayDirectory((DirectoryNode) entry, os, newIndent, withSizes); } else { DocumentNode doc = (DocumentNode) entry;
/** * @param os * @param verbose * @throws IOException * @since 3.0.0 */ public void viewFile(OutputStream os, boolean verbose) throws IOException { String indent=""; boolean withSizes = true; displayDirectory(getFs().getRoot(), os, indent, withSizes); if (verbose) { List strings = POIFSViewEngine.inspectViewable(fs, true, 0, " "); Iterator iter = strings.iterator(); while (iter.hasNext()) { os.write( ((String)iter.next()).getBytes()); } } }
Entry entry = it.next(); if (entry instanceof DirectoryNode) { displayDirectory((DirectoryNode) entry, os, newIndent, withSizes); } else { DocumentNode doc = (DocumentNode) entry;