Package org.pentaho.reporting.libraries.resourceloader

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException


    {
      throw new ResourceCreationException("Failed to parse the stylesheet.");
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to load the stylesheet.");
    }
  }
View Full Code Here


    {
      throw new ResourceCreationException("Failed to parse the stylesheet.", e);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to load the stylesheet.", e);
    }
  }
View Full Code Here

      return new RepositoryResourceBundleData(key, repository, mainKey, true);
    }
    catch (ContentIOException e)
    {
      throw new ResourceLoadingException("Failed", e);
    }
  }
View Full Code Here

    {
      return null;
    }
    catch (IOException ioe)
    {
      throw new ResourceLoadingException("IOError during load", ioe);
    }
  }
View Full Code Here

    }
  }

  public ResourceData load(final ResourceKey key) throws ResourceLoadingException
  {
    throw new ResourceLoadingException("This resource Loader cannot be used to create a ResourceData object.");
  }
View Full Code Here

        }
      }
    }
    catch (ContentIOException e)
    {
      throw new ResourceLoadingException("Failed to create Bundle-Data", e);
    }
  }
View Full Code Here

      throw new NullPointerException();
    }

    if (contentItem == null)
    {
      throw new ResourceLoadingException("Failure: Missing data");
    }

    try
    {
      return contentItem.getInputStream();
    }
    catch (ContentIOException cioe)
    {
      throw new ResourceLoadingException("Failure", cioe);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failure", e);
    }
  }
View Full Code Here

    final long version = data.getVersion(manager);
    final ResourceKey key = data.getKey();
    final Object o = key.getFactoryParameters().get(DOMAIN_ID);
    if (o == null)
    {
      throw new ResourceLoadingException("Your resource-key must have a domain-id factory key defined.");
    }
    try
    {
      final InMemoryMetadataDomainRepository repo = new InMemoryMetadataDomainRepository();
      final XmiParser parser = new XmiParser();
      final Domain domain = parser.parseXmi(stream);
      domain.setId(String.valueOf(o));
      repo.storeDomain(domain, true);
      return new SimpleResource(key, repo, IMetadataDomainRepository.class, version);
    }
    catch (ResourceCreationException e)
    {
      throw e;
    }
    catch (ResourceLoadingException e)
    {
      throw e;
    }
    catch (IOException ioe)
    {
      throw new ResourceLoadingException("IOError", ioe);
    }
    catch (Exception e)
    {
      throw new ResourceCreationException("Generic Error", e);
    }
View Full Code Here

    {
      return inputRepository.createInputStream(resourceIdentifer);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException
              ("Failed to create input stream for " + resourceIdentifer, e);
    }
  }
View Full Code Here

    public ResourceData load(final ResourceKey key)
            throws ResourceLoadingException
    {
        if (!isSupportedKey(key))
        {
            throw new ResourceLoadingException("None of my keys.");
        }

        return new InputRepositoryResourceData(key, inputRepository);
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException

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.