Exemplo n.º 1
0
 File getContentFile() {
   File fp = null;
   String outPath = JConfig.queryConfiguration("auctions.savepath");
   if (outPath != null && outPath.length() != 0) {
     String filePath =
         outPath + System.getProperty("file.separator") + getIdentifier() + ".html.gz";
     fp = new File(filePath);
   }
   return fp;
 }
Exemplo n.º 2
0
  public void save() {
    String outPath = JConfig.queryConfiguration("auctions.savepath");
    if (outPath != null && outPath.length() != 0) {
      if (JConfig.queryConfiguration("store.auctionHTML", "true").equals("true")) {
        String filePath =
            outPath + System.getProperty("file.separator") + getIdentifier() + ".html.gz";

        if (mLoadedPage != null) {
          mLoadedPage.save(filePath);
        }
      }
    }
    mLoadedPage = null;
  }
Exemplo n.º 3
0
  void setRealContent(byte[] changedContent, boolean final_data) {
    String outPath = JConfig.queryConfiguration("auctions.savepath");

    if (changedContent != null) {
      mLoadedPage = new GZip();
      mLoadedPage.setData(changedContent);

      if (outPath != null && outPath.length() != 0) {
        if (final_data) {
          String filePath =
              outPath + System.getProperty("file.separator") + getIdentifier() + ".html.gz";
          mLoadedPage.save(filePath);
          mLoadedPage = null;
        }
      }
    }
  }