Examples of SimpleResource


Examples of org.jfree.resourceloader.SimpleResource

  {
    try
    {
      final long version = data.getVersion(caller);
      final WmfFile wmfFile = new WmfFile(data.getResourceAsStream(caller), -1, -1);
      return new SimpleResource (data.getKey(), wmfFile, version);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to process WMF file", e);
    }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

    try
    {
      final long version = data.getVersion(caller);
      final WmfFile wmfFile = new WmfFile(data.getResourceAsStream(caller), -1, -1);
      final Image image = wmfFile.replay();
      return new SimpleResource (data.getKey(), image, version);
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to process WMF file", e);
    }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

  {
    try
    {
      final Properties properties = new Properties();
      properties.load(data.getResourceAsStream(manager));
      return new SimpleResource (data.getKey(), properties, data.getVersion(manager));
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to load the properties file.",e);
    }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

          throws ResourceLoadingException
  {
    final long version = data.getVersion(caller);
    final Image image =
            Toolkit.getDefaultToolkit().createImage(data.getResource(caller));
    return new SimpleResource (data.getKey(), image, version);
  }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

          throws ResourceLoadingException
  {
    final long version = data.getVersion(caller);
    final Image image =
            Toolkit.getDefaultToolkit().createImage(data.getResource(caller));
    return new SimpleResource (data.getKey(), image, version);
  }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

          throws ResourceLoadingException
  {
    final long version = data.getVersion(caller);
    final Image image =
            Toolkit.getDefaultToolkit().createImage(data.getResource(caller));
    return new SimpleResource (data.getKey(), image, version);
  }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

        throw new ResourceCreationException("This is no 8Bit Encoding data");
      }
      final External8BitEncodingData encData = (External8BitEncodingData) ob;
      final External8BitEncodingCore encCore =
              new External8BitEncodingCore(encData);
      return new SimpleResource(data.getKey(), encCore, data.getVersion(manager));
    }
    catch (IOException e)
    {
      throw new ResourceLoadingException("Failed to load resource", e);
    }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

      final InputStream stream = data.getResourceAsStream(caller);
      try
      {
        final WmfFile wmfFile = new WmfFile(stream, -1, -1);
        final Image image = wmfFile.replay();
        return new SimpleResource(data.getKey(), image, version);
      }
      finally
      {
        stream.close();
      }
View Full Code Here

Examples of org.jfree.resourceloader.SimpleResource

      final long version = data.getVersion(caller);
      final InputStream stream = data.getResourceAsStream(caller);
      try
      {
        final WmfFile wmfFile = new WmfFile(stream, -1, -1);
        return new SimpleResource (data.getKey(), wmfFile, version);
      }
      finally
      {
        stream.close();
      }
View Full Code Here

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

    final RepositoryResourceBundleData bdata = (RepositoryResourceBundleData) data;
    final Repository repository = bdata.getRepository();
    try
    {
      final StaticDocumentBundle bundle = new StaticDocumentBundle(repository, manager, bdata.getBundleKey());
      return new SimpleResource(data.getKey(), bundle, getFactoryType(), data.getVersion(manager));
    }
    catch (ResourceException e)
    {
      throw new ResourceCreationException("Unable to interpret document-bundle", e);
    }
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.