예제 #1
0
 /** {@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);
 }
예제 #2
0
 /** {@inheritDoc} */
 public long getDataSize() {
   return getTagSize() - (extHeader == null ? 0 : extHeader.sizeOf());
 }
예제 #3
0
 /** {@inheritDoc} */
 public void setDataSize(long l) {
   // tagSize = l - extHeader.len
   this.setTagSize(l - (extHeader == null ? 0 : extHeader.sizeOf()));
 }
예제 #4
0
 /** {@inheritDoc} */
 public int sizeOf() {
   int sz = super.sizeOf();
   if (extHeader != null) sz += extHeader.sizeOf();
   return sz;
 }