public Category(Wikipedia wiki,String pName) throws WikiApiException {
  if (pName == null || pName.length() == 0) {
    throw new WikiPageNotFoundException();
  }
  this.wiki=wiki;
  catDAO=new CategoryDAO(wiki);
  Title catTitle=new Title(pName);
  createCategory(catTitle);
}

public Category ( Wikipedia wiki , String pName ) throws WikiApiException { if ( pName == null || pName . length ( ) == 0 ) { throw new WikiPageNotFoundException ( ) ; } this . wiki = wiki ; catDAO = new CategoryDAO ( wiki ) ; Title catTitle = new Title ( pName ) ; createCategory ( catTitle ) ; }
creates a category object .
