Package org.jfree.resourceloader

Examples of org.jfree.resourceloader.ResourceManager


          return new StaticTextToken(String.valueOf(docUrl));
        }

        final ResourceKey baseKey =
            DocumentContextUtility.getBaseResource(process.getDocumentContext());
        final ResourceManager resourceManager =
            DocumentContextUtility.getResourceManager(process.getDocumentContext());
        final URL url = resourceManager.toURL(baseKey);
        if (url != null)
        {
          return new StaticTextToken(url.toExternalForm());
        }
        return null;
View Full Code Here


            return new StaticTextToken(String.valueOf(docUrl));
          }

          final ResourceKey baseKey =
              DocumentContextUtility.getBaseResource(process.getDocumentContext());
          final ResourceManager resourceManager =
              DocumentContextUtility.getResourceManager(process.getDocumentContext());
          final URL url = resourceManager.toURL(baseKey);
          if (url != null)
          {
            return new StaticTextToken(url.toExternalForm());
          }
          return null;
View Full Code Here

          return new StaticTextToken(String.valueOf(docUrl));
        }

        final ResourceKey baseKey =
            DocumentContextUtility.getBaseResource(process.getDocumentContext());
        final ResourceManager resourceManager =
            DocumentContextUtility.getResourceManager(process.getDocumentContext());
        final URL url = resourceManager.toURL(baseKey);
        if (url != null)
        {
          return new StaticTextToken(url.toExternalForm());
        }
        return null;
View Full Code Here

  protected ReportTarget createReportTarget(final ReportJob job)
          throws ReportProcessingException
  {
    final ReportStructureRoot report = job.getReportStructureRoot();
    final ResourceManager resourceManager = report.getResourceManager();

    return new TextRawReportTarget (job, resourceManager, report.getBaseResource(),
                inputRepository, outputRepository, targetName, imageService);
  }
View Full Code Here

  }

  private OfficeStylesCollection parseStylesXml ()
  {
    final ResourceKey contextKey = getRootHandler().getContext();
    final ResourceManager resourceManager = getRootHandler().getResourceManager();

    try
    {
      final ResourceKey key =
          resourceManager.deriveKey(contextKey, "styles.xml");
      final Resource resource =
          resourceManager.create(key, contextKey, OfficeStylesCollection.class);
      final OfficeStylesCollection styles =
          (OfficeStylesCollection) resource.getResource();
      if (styles != null)
      {
        return styles;
View Full Code Here

      return new OfficeDocument();
    }

    // we may have to parse an existing content.xml.
    final ResourceKey contextKey = getRootHandler().getContext();
    final ResourceManager resourceManager = getRootHandler().getResourceManager();
    try
    {
      final ResourceKey key =
          resourceManager.deriveKey(contextKey, "content.xml");
      final Resource resource =
          resourceManager.create(key, contextKey, JFreeReport.class);
      final OfficeDocument report = (OfficeDocument) resource.getResource();
      if (report != null)
      {
        return report;
      }
View Full Code Here

    this.imageProducer = new ImageProducer(inputRepository, outputRepository, imageService);

    try
    {
      final ResourceManager realResourceManager = getResourceManager();
      styleMapper = StyleMapper.loadInstance(realResourceManager);
    }
    catch (ResourceException e)
    {
      throw new ReportProcessingException("Failed to load style-mapper", e);
View Full Code Here

TOP

Related Classes of org.jfree.resourceloader.ResourceManager

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.