Esempio n. 1
0
  /** {@inheritDoc} */
  public void encode(final SWFEncoder coder, final Context context) throws IOException {

    if (length > Coder.HEADER_LIMIT) {
      coder.writeShort((MovieTypes.FONT_NAME << Coder.LENGTH_FIELD_SIZE) | Coder.IS_EXTENDED);
      coder.writeInt(length);
    } else {
      coder.writeShort((MovieTypes.FONT_NAME << Coder.LENGTH_FIELD_SIZE) | length);
    }
    if (Constants.DEBUG) {
      coder.mark();
    }
    coder.writeShort(identifier);
    coder.writeString(name);
    coder.writeString(copyright);
    if (Constants.DEBUG) {
      coder.check(length);
      coder.unmark();
    }
  }
Esempio n. 2
0
 /** {@inheritDoc} */
 public void encode(final SWFEncoder coder, final Context context) throws IOException {
   coder.writeBytes(data);
 }