Examples of CatalogReader


Examples of com.sun.org.apache.xml.internal.resolver.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 com.sun.org.apache.xml.internal.resolver.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 com.sun.org.apache.xml.internal.resolver.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 com.sun.org.apache.xml.internal.resolver.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 com.sun.org.apache.xml.internal.resolver.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 com.sun.org.apache.xml.internal.resolver.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 flex2.compiler.swc.catalog.CatalogReader

        if (catalogFile == null)
        {
          throw new SwcException.CatalogNotFound();
        }
        stream = catalogFile.getInputStream();
        CatalogReader reader = new CatalogReader(new BufferedInputStream(stream), this, archive);
        reader.read();

        versions = reader.getVersions();
        swcFeatures = reader.getFeatures();
        components = reader.getComponents();
        libraries = reader.getLibraries();

      /**
       * version checking:
       * - a failure results in a warning, not an error
       * - we do an across-the-board check for SWC major lib version <= compiler major lib version
View Full Code Here

Examples of mf.org.apache.xml.resolver.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 mf.org.apache.xml.resolver.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 mf.org.apache.xml.resolver.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
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.