throws IOException, CatalogException {
default_override = catalogManager.getPreferPublic();
catalogManager.debug.message(4, "Parse " + mimeType + " catalog on input stream");
CatalogReader reader = null;
if (readerMap.containsKey(mimeType)) {
int arrayPos = ((Integer) readerMap.get(mimeType)).intValue();
reader = (CatalogReader) readerArr.get(arrayPos);
}
if (reader == null) {
String msg = "No CatalogReader for MIME type: " + mimeType;
catalogManager.debug.message(2, msg);
throw new CatalogException(CatalogException.UNPARSEABLE, msg);
}
reader.readCatalog(this, is);
// Now process all the pending catalogs...
parsePendingCatalogs();
}