synchronized void addCSS(String cssUrl,String encoding){
  if (started) {
    throw new IllegalStateException("ResourceThreadQueue alreadey started! stop/cancel first");
  }
  DocumentInfo cssDocInfo=new DocumentInfo(cssUrl,DocumentInfo.TYPE_CSS);
  if (encoding != null) {
    cssDocInfo.setEncoding(encoding);
  }
  ResourceThread t=new ResourceThread(cssDocInfo,htmlC,this);
  queue.addElement(t);
  incCSSCount();
}

synchronized void addCSS ( String cssUrl , String encoding ) { if ( started ) { throw new IllegalStateException ( "ResourceThreadQueue alreadey started! stop/cancel first" ) ; } DocumentInfo cssDocInfo = new DocumentInfo ( cssUrl , DocumentInfo . TYPE_CSS ) ; if ( encoding != null ) { cssDocInfo . setEncoding ( encoding ) ; } ResourceThread t = new ResourceThread ( cssDocInfo , htmlC , this ) ; queue . addElement ( t ) ; incCSSCount ( ) ; }
adds a stylesheet to the queue
