Package org.jfree.resourceloader

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


        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

      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

      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

TOP

Related Classes of org.jfree.resourceloader.SimpleResource

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.