code: public static String[] getXlsWorksheets(InputStream stream) 
          throws IOException, jxl.read.biff.BiffException
      {
          XlsWorkbook workbook = XlsWorkbook.getWorkbook(stream);
          String[] sheets = workbook.getSheetNames();
          workbook.close();
          return sheets;
      }
docs: Returns the sheets from the given Excel XLS file.
  @param stream The input stream with the XLS file
  @return The sheet names from the XLS file
  @throws IOException if the file cannot be opened
  @throws jxl.read.biff.BiffException if there is a format error with the file