List of usage examples for org.apache.poi.poifs.dev POIFSViewEngine inspectViewable
public static List<String> inspectViewable(final Object viewable, final boolean drilldown, final int indentLevel, final String indentString)
From source file:org.docx4j.openpackaging.parts.WordprocessingML.OleObjectBinaryPart.java
License:Apache License
/** * @param os//from w w w . ja v a 2 s.c om * @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()); } } }