protected void writeStyles(List styles) throws IOException {
  int numStyles=(styles != null) ? styles.size() : 0;
  if (numStyles < 0xff) {
    out.writeUI8(numStyles);
  }
 else {
    out.writeUI8(0xff);
    out.writeUI16(numStyles);
  }
  if (styles != null) {
    for (Iterator enumumerator=styles.iterator(); enumumerator.hasNext(); ) {
      Style style=(Style)enumumerator.next();
      style.write(out,hasAlpha);
    }
    styles.clear();
  }
}

protected void writeStyles ( List styles ) throws IOException { int numStyles = ( styles != null ) ? styles . size ( ) : 0 ; if ( numStyles < 0xff ) { out . writeUI8 ( numStyles ) ; } else { out . writeUI8 ( 0xff ) ; out . writeUI16 ( numStyles ) ; } if ( styles != null ) { for ( Iterator enumumerator = styles . iterator ( ) ; enumumerator . hasNext ( ) ; ) { Style style = ( Style ) enumumerator . next ( ) ; style . write ( out , hasAlpha ) ; } styles . clear ( ) ; } }
description of the method
