code: public void toPdf(int midSize, OutputStream os) throws IOException {
                  os.write((byte)type);
                  while (--midSize >= 0)
                      os.write((byte)((offset >>> (8 * midSize)) & 0xff));
                  os.write((byte)((generation >>> 8) & 0xff));
                  os.write((byte)(generation & 0xff));
              }
docs: Writes PDF syntax to the OutputStream
  @param midSize
  @param os
  @throws IOException