/** {@inheritDoc} */ public void write(OutputStream out) throws IOException { /** @assume that size is set to extHeader len + data len. */ super.write(out); if (extHeader != null) extHeader.write(out); }
/** {@inheritDoc} */ public long getDataSize() { return getTagSize() - (extHeader == null ? 0 : extHeader.sizeOf()); }
/** {@inheritDoc} */ public void setDataSize(long l) { // tagSize = l - extHeader.len this.setTagSize(l - (extHeader == null ? 0 : extHeader.sizeOf())); }
/** {@inheritDoc} */ public int sizeOf() { int sz = super.sizeOf(); if (extHeader != null) sz += extHeader.sizeOf(); return sz; }