/** * Does the dumping. */ public void dump() { byte[] bytes = getBytes(); ByteArray ba = new ByteArray(bytes); DirectClassFile cf = new DirectClassFile(ba, getFilePath(), getStrictParse()); cf.setAttributeFactory(StdAttributeFactory.THE_ONE); cf.setObserver(this); cf.getMagic(); // Force parsing to happen. int at = getAt(); if (at != bytes.length) { parsed(ba, at, bytes.length - at, "<extra data at end of file>"); } } }
/** * Does the dumping. */ public void dump() { byte[] bytes = getBytes(); ByteArray ba = new ByteArray(bytes); DirectClassFile cf = new DirectClassFile(ba, getFilePath(), getStrictParse()); cf.setAttributeFactory(StdAttributeFactory.THE_ONE); cf.setObserver(this); cf.getMagic(); // Force parsing to happen. int at = getAt(); if (at != bytes.length) { parsed(ba, at, bytes.length - at, "<extra data at end of file>"); } } }
/** * Does the dumping. */ public void dump() { byte[] bytes = getBytes(); ByteArray ba = new ByteArray(bytes); DirectClassFile cf = new DirectClassFile(ba, getFilePath(), getStrictParse()); cf.setAttributeFactory(StdAttributeFactory.THE_ONE); cf.setObserver(this); cf.getMagic(); // Force parsing to happen. int readBytes = getReadBytes(); if (readBytes != bytes.length) { parsed(ba, readBytes, bytes.length - readBytes, "<extra data at end of file>"); } } }
/** * Does the dumping. */ public void dump() { byte[] bytes = getBytes(); ByteArray ba = new ByteArray(bytes); DirectClassFile cf = new DirectClassFile(ba, getFilePath(), getStrictParse()); cf.setAttributeFactory(StdAttributeFactory.THE_ONE); cf.setObserver(this); cf.getMagic(); // Force parsing to happen. int at = getAt(); if (at != bytes.length) { parsed(ba, at, bytes.length - at, "<extra data at end of file>"); } } }
/** * Does the dumping. */ public void dump() { byte[] bytes = getBytes(); ByteArray ba = new ByteArray(bytes); DirectClassFile cf = new DirectClassFile(ba, getFilePath(), getStrictParse()); cf.setAttributeFactory(StdAttributeFactory.THE_ONE); cf.setObserver(this); cf.getMagic(); // Force parsing to happen. int at = getAt(); if (at != bytes.length) { parsed(ba, at, bytes.length - at, "<extra data at end of file>"); } } }