Examples of FileResourceStream


Examples of org.apache.wicket.util.resource.FileResourceStream

      Folder folder = folders.get(i);
      final File file = new File(folder, pathname);

      if (file.exists())
      {
        return new FileResourceStream(file);
      }
    }

    return null;
  }
View Full Code Here

Examples of org.apache.wicket.util.resource.FileResourceStream

    {
      cache.put(key, NullResourceStreamReference.INSTANCE);
    }
    else if (stream instanceof FileResourceStream)
    {
      FileResourceStream fileResourceStream = (FileResourceStream)stream;
      cache.put(key, new FileResourceStreamReference(fileResourceStream));
    }
    else if (stream instanceof UrlResourceStream)
    {
      UrlResourceStream urlResourceStream = (UrlResourceStream)stream;
View Full Code Here

Examples of org.apache.wicket.util.resource.FileResourceStream

    {
      File file = File.createTempFile("excel", null);
      FileOutputStream fileOut = new FileOutputStream(file);
      report.generate().write(fileOut);
      fileOut.close();
      return new FileResourceStream(file);
    }
    catch (IOException e)
    {
      throw new SystemeException(e);
    }
View Full Code Here

Examples of org.apache.wicket.util.resource.FileResourceStream

        {
          File file = File.createTempFile("excel", null);
          FileOutputStream fileOut = new FileOutputStream(file);
          reportInfo.generate().write(fileOut);
          fileOut.close();
          return new FileResourceStream(file);
        }
        catch (IOException e)
        {
          throw new SystemeException(e);
        }
View Full Code Here

Examples of org.apache.wicket.util.resource.FileResourceStream

      private static final long serialVersionUID = 1L;

      @Override
      public IResourceStream getResourceStream()
      {
        return new FileResourceStream(resourceService
            .getFile(importation.getImportFile()));
      }
    }));

    this.add(new PageLink("chooseFile", new IPageLink()
View Full Code Here

Examples of org.apache.wicket.util.resource.FileResourceStream

      private static final long serialVersionUID = 1L;

      @Override
      public IResourceStream getResourceStream()
      {
        return new FileResourceStream(resourceService
            .getFile(importation.getImportFile()));
      }
    }));

    this.add(new PageLink("chooseFile", new IPageLink()
View Full Code Here

Examples of org.apache.wicket.util.resource.FileResourceStream

          File file = File.createTempFile("excel", null);
          FileOutputStream fileOut = new FileOutputStream(file);
          wb.write(fileOut);
          fileOut.close();

          return new FileResourceStream(file);
        }
        catch (FileNotFoundException e)
        {
          throw new SystemeException(e);
        }
View Full Code Here

Examples of org.apache.wicket.util.resource.FileResourceStream

    {
      cache.put(key, NullResourceStreamReference.INSTANCE);
    }
    else if (stream instanceof FileResourceStream)
    {
      FileResourceStream fileResourceStream = (FileResourceStream)stream;
      cache.put(key, new FileResourceStreamReference(fileResourceStream));
    }
    else if (stream instanceof UrlResourceStream)
    {
      UrlResourceStream urlResourceStream = (UrlResourceStream)stream;
View Full Code Here

Examples of org.apache.wicket.util.resource.FileResourceStream

  }

  @Override
  public FileResourceStream getReference()
  {
    FileResourceStream fileResourceStream = new FileResourceStream(new File(fileName));
    restoreResourceStream(fileResourceStream);
    return fileResourceStream;
  }
View Full Code Here

Examples of wicket.util.resource.FileResourceStream

        {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
       
        return new FileResourceStream(new File("temp.xls"));
      }

      @Override
      protected void setHeaders(WebResponse response)
      {
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.