private boolean processTagReadError(TagHeader tagHeader, byte[] tagData, Exception e) { if (listeners.size() == 0) return true; boolean result = false; for (SWFListener l : listeners) { result = l.processTagReadError(tagHeader, tagData, e) || result; } return result; }
private void processHeader(SWFHeader header) { document.setFrameRate(header.getFrameRate()); document.setFrameSize(header.getFrameSize()); document.setVersion(header.getVersion()); document.setFileLength(header.getFileLength()); document.setFrameCount(header.getFrameCount()); document.setCompressed(header.isCompressed()); for (SWFListener l : listeners) { l.processHeader(header); } }
private void processTag(Tag tag, long streamOffset) { switch (tag.tagType()) { case SET_BACKGROUND_COLOR: document.setBackgroundColor(((SetBackgroundColor) tag).getColor()); return; case FILE_ATTRIBUTES: if (((FileAttributes) tag).isAllowNetworkAccess()) { document.setAccessMode(SWFDocument.ACCESS_MODE_NETWORK); } return; case METADATA: document.setMetadata(((Metadata) tag).getDataString()); return; } document.addTag(tag); for (SWFListener l : listeners) { l.processTag(tag, streamOffset); } }
private void processTagHeaderReadError(Exception e) { for (SWFListener l : listeners) { l.processTagHeaderReadError(e); } }
private void processTagHeader(TagHeader tagHeader) { for (SWFListener l : listeners) { l.processTagHeader(tagHeader); } }
private void preProcess() { for (SWFListener l : listeners) { l.preProcess(); } }