Examples of CatalogReader


Examples of org.apache.xml.resolver.readers.CatalogReader

/*  843 */     DataInputStream inStream = null;
/*  844 */     boolean parsed = false;
/*  845 */     boolean notFound = false;
/*      */
/*  847 */     for (int count = 0; (!parsed) && (count < this.readerArr.size()); count++) {
/*  848 */       CatalogReader reader = (CatalogReader)this.readerArr.get(count);
/*      */       try
/*      */       {
/*  851 */         notFound = false;
/*  852 */         inStream = new DataInputStream(this.base.openStream());
/*      */       }
/*      */       catch (FileNotFoundException fnfe) {
/*  855 */         notFound = true;
/*  856 */         break;
/*      */       }
/*      */       try
/*      */       {
/*  860 */         reader.readCatalog(this, inStream);
/*  861 */         parsed = true;
/*      */       } catch (CatalogException ce) {
/*  863 */         if (ce.getExceptionType() != 7) break label266;
/*      */       }
/*  865 */       break;
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

    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();
  }
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

    DataInputStream inStream = null;
    boolean parsed = false;

    for (int count = 0; !parsed && count < readerArr.size(); count++) {
      CatalogReader reader = (CatalogReader) readerArr.get(count);

      try {
        inStream = new DataInputStream(aUrl.openStream());
      } catch (FileNotFoundException fnfe) {
        // No catalog; give up!
        break;
      }

      try {
        reader.readCatalog(this, inStream);
        parsed=true;
      } catch (CatalogException ce) {
        if (ce.getExceptionType() == CatalogException.PARSE_FAILED) {
          // give up!
          break;
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

    DataInputStream inStream = null;
    boolean parsed = false;
    boolean notFound = false;

    for (int count = 0; !parsed && count < readerArr.size(); count++) {
      CatalogReader reader = (CatalogReader) readerArr.get(count);

      try {
  notFound = false;
  inStream = new DataInputStream(base.openStream());
      } catch (FileNotFoundException fnfe) {
  // No catalog; give up!
  notFound = true;
  break;
      }

      try {
  reader.readCatalog(this, inStream);
  parsed = true;
      } catch (CatalogException ce) {
  if (ce.getExceptionType() == CatalogException.PARSE_FAILED) {
    // give up!
    break;
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

    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();
  }
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

    DataInputStream inStream = null;
    boolean parsed = false;

    for (int count = 0; !parsed && count < readerArr.size(); count++) {
      CatalogReader reader = (CatalogReader) readerArr.get(count);

      try {
        inStream = new DataInputStream(aUrl.openStream());
      } catch (FileNotFoundException fnfe) {
        // No catalog; give up!
        break;
      }

      try {
        reader.readCatalog(this, inStream);
        parsed=true;
      } catch (CatalogException ce) {
        if (ce.getExceptionType() == CatalogException.PARSE_FAILED) {
          // give up!
          break;
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

    DataInputStream inStream = null;
    boolean parsed = false;
    boolean notFound = false;

    for (int count = 0; !parsed && count < readerArr.size(); count++) {
      CatalogReader reader = (CatalogReader) readerArr.get(count);

      try {
  notFound = false;
  inStream = new DataInputStream(base.openStream());
      } catch (FileNotFoundException fnfe) {
  // No catalog; give up!
  notFound = true;
  break;
      }

      try {
  reader.readCatalog(this, inStream);
  parsed = true;
      } catch (CatalogException ce) {
  if (ce.getExceptionType() == CatalogException.PARSE_FAILED) {
    // give up!
    break;
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

/*      */     throws IOException, CatalogException
/*      */   {
/*  646 */     this.default_override = this.catalogManager.getPreferPublic();
/*  647 */     this.catalogManager.debug.message(4, "Parse " + mimeType + " catalog on input stream");
/*      */
/*  649 */     CatalogReader reader = null;
/*      */
/*  651 */     if (this.readerMap.containsKey(mimeType)) {
/*  652 */       int arrayPos = ((Integer)this.readerMap.get(mimeType)).intValue();
/*  653 */       reader = (CatalogReader)this.readerArr.get(arrayPos);
/*      */     }
/*      */
/*  656 */     if (reader == null) {
/*  657 */       String msg = "No CatalogReader for MIME type: " + mimeType;
/*  658 */       this.catalogManager.debug.message(2, msg);
/*  659 */       throw new CatalogException(6, msg);
/*      */     }
/*      */
/*  662 */     reader.readCatalog(this, is);
/*      */
/*  665 */     parsePendingCatalogs();
/*      */   }
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

/*      */
/*  690 */     DataInputStream inStream = null;
/*  691 */     boolean parsed = false;
/*      */
/*  693 */     for (int count = 0; (!parsed) && (count < this.readerArr.size()); count++) {
/*  694 */       CatalogReader reader = (CatalogReader)this.readerArr.get(count);
/*      */       try
/*      */       {
/*  697 */         inStream = new DataInputStream(aUrl.openStream());
/*      */       }
/*      */       catch (FileNotFoundException fnfe) {
/*  700 */         break;
/*      */       }
/*      */       try
/*      */       {
/*  704 */         reader.readCatalog(this, inStream);
/*  705 */         parsed = true;
/*      */       } catch (CatalogException ce) {
/*  707 */         if (ce.getExceptionType() != 7) break label140;
/*      */       }
/*  709 */       break;
View Full Code Here

Examples of org.jboss.util.xml.catalog.readers.CatalogReader

/*  866 */     DataInputStream inStream = null;
/*  867 */     boolean parsed = false;
/*  868 */     boolean notFound = false;
/*      */
/*  870 */     for (int count = 0; (!parsed) && (count < this.readerArr.size()); count++) {
/*  871 */       CatalogReader reader = (CatalogReader)this.readerArr.get(count);
/*      */       try
/*      */       {
/*  874 */         notFound = false;
/*  875 */         inStream = new DataInputStream(this.base.openStream());
/*      */       }
/*      */       catch (FileNotFoundException fnfe) {
/*  878 */         notFound = true;
/*  879 */         break;
/*      */       }
/*      */       try
/*      */       {
/*  883 */         reader.readCatalog(this, inStream);
/*  884 */         parsed = true;
/*      */       } catch (CatalogException ce) {
/*  886 */         if (ce.getExceptionType() != 7) break label309;
/*      */       }
/*  888 */       break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.