public final class BiffViewer {
static final char[] NEW_LINE_CHARS = System.getProperty("line.separator").toCharArray();
- private BiffViewer() {
+ private BiffViewer() {
// no instances of this class
}
noint = true;
} else if ("--out".equals(arg)) {
out = true;
- } else if ("--rawhex".equals(arg)) {
- rawhex = true;
+ } else if ("--escher".equals(arg)) {
+ System.setProperty("poi.deserialize.escher", "true");
+ } else if ("--rawhex".equals(arg)) {
+ rawhex = true;
} else {
throw new CommandParseException("Unexpected option '" + arg + "'");
}
*
* <b>Usage</b>:<br/>
*
- * BiffViewer [--biffhex] [--noint] [--out] <fileName> <br/>
+ * BiffViewer [--biffhex] [--noint] [--noescher] [--out] <fileName> <br/>
* BiffViewer --rawhex [--out] <fileName> <br/>
* <br/>
*
* <tr><td>--noint</td><td>do not output interpretation of BIFF records</td></tr>
* <tr><td>--out</td><td>send output to <fileName>.out</td></tr>
* <tr><td>--rawhex</td><td>output raw hex dump of whole workbook stream</td></tr>
+ * <tr><td>--escher</td><td>turn on deserialization of escher records (default is off)</td></tr>
* </table>
*
- * Define the system property <code>poi.deserialize.escher</code> to turn on
- * deserialization of escher records.
- *
*/
public static void main(String[] args) {
return;
}
- System.setProperty("poi.deserialize.escher", "true");
-
-
try {
PrintStream ps;