Package org.apache.padaf.xmpbox

Examples of org.apache.padaf.xmpbox.BuildPDFAExtensionSchemaDescriptionException


  public void loadListFromXML(Class<? extends XMPSchema> classSchem,
      String path) throws BuildPDFAExtensionSchemaDescriptionException {
    InputStream fis = classSchem.getResourceAsStream(path);
    if (fis == null) {
      // resource not found
      throw new BuildPDFAExtensionSchemaDescriptionException(
          "Failed to find specified XML properties descriptions resource");
    }
    loadListFromXML(fis);

  }
View Full Code Here


      if (o instanceof List<?>) {
        if (((List<?>) o).get(0) != null) {
          if (((List<?>) o).get(0) instanceof PropertyDescription) {
            propDescs = (List<PropertyDescription>) o;
          } else {
            throw new BuildPDFAExtensionSchemaDescriptionException(
                "Failed to get correct properties descriptions from specified XML stream");
          }
        } else {
          throw new BuildPDFAExtensionSchemaDescriptionException(
              "Failed to find a properties description into the specified XML stream");
        }

      }

    } catch (Exception e) {
      throw new BuildPDFAExtensionSchemaDescriptionException(
          "Failed to get correct properties descriptions from specified XML stream",
          e.getCause());
    } finally {
      IOUtils.closeQuietly(is);
    }
View Full Code Here

   */
  public void loadListFromXML(Class<? extends XMPSchema> classSchem,
      String path) throws BuildPDFAExtensionSchemaDescriptionException {
    InputStream fis = classSchem.getResourceAsStream(path);
    if (fis == null) {
      throw new BuildPDFAExtensionSchemaDescriptionException(
          "Failed to find specified XML valuetypes descriptions File");
    }
    loadListFromXML(fis);
  }
View Full Code Here

      if (o instanceof List<?>) {
        if (((List<?>) o).get(0) != null) {
          if (((List<?>) o).get(0) instanceof ValueTypeDescription) {
            vTypes = (List<ValueTypeDescription>) o;
          } else {
            throw new BuildPDFAExtensionSchemaDescriptionException(
                "Failed to get correct valuetypes descriptions from specified XML stream");
          }
        } else {
          throw new BuildPDFAExtensionSchemaDescriptionException(
              "Failed to find a valuetype description into the specified XML stream");
        }
      }

    } catch (Exception e) {
      throw new BuildPDFAExtensionSchemaDescriptionException(
          "Failed to get correct valuetypes descriptions from specified XML stream",
          e.getCause());
    } finally {
      IOUtils.closeQuietly(is);
    }
View Full Code Here

TOP

Related Classes of org.apache.padaf.xmpbox.BuildPDFAExtensionSchemaDescriptionException

Copyright © 2018 www.massapicom. 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.