Examples of lastModified()


Examples of java.io.File.lastModified()

        oFS.mkdirs(sFileDir);
      } catch (Exception xcpt) {
        throw new PortletException(xcpt.getMessage(), xcpt);
      }
    } else {
      bFetch = (new Date().getTime()-oCached.lastModified()>lRefreshEvery);
    }
     
  if (bFetch) {

      String sXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><?xml-stylesheet type=\"text/xsl\"?>\n<folder account=\""+(null==sMailAccount ? "" : sMailAccount)+"\" name=\"inbox\">";
View Full Code Here

Examples of java.util.zip.ZipFile.lastModified()

                  //-- ignore...problem with finding or reading jar.
              }
          }
          else if (href.startsWith(FILE_PROTOCOL)) {
              File file = new File(href.substring(FILE_PROTOCOL.length()));
              date = new Date(file.lastModified());
          }
            if (date != null) {
                SimpleDateFormat format = new SimpleDateFormat(DATE_FORMAT);
                buffer.append(format.format(date));
            }
View Full Code Here

Examples of javax.microedition.io.file.FileConnection.lastModified()

            props.setCommandListener(this);

            props.append(new StringItem(T._("Location"), currDirName));
            props.append(new StringItem(T._("Type"), fc.isDirectory() ? T._("Directory") : T._("Regular File")));
            props.append(new StringItem(T._("Size"), Long.toString((fc.isDirectory() ? fc.directorySize(true) : fc.fileSize()))));
            props.append(new StringItem(T._("Modified"), myDate(fc.lastModified())));

            ChoiceGroup attrs = new ChoiceGroup(T._("Attributes"), Choice.MULTIPLE, attrList, null);
            attrs.setSelectedFlags(new boolean[] { fc.canRead(), fc.canWrite(), fc.isHidden() });
            props.append(attrs);
View Full Code Here

Examples of javax.ws.rs.core.Response.ResponseBuilder.lastModified()

        if (builder != null) {
            // Preconditions are met, report the status to the client
            throw new WebApplicationException(builder.build());
        }
        builder = Response.ok();
        builder.lastModified(lastModification);
        return builder;
    }

    /**
     * Returns the configuration instance.
View Full Code Here

Examples of jcifs.smb.SmbFile.lastModified()

      SmbFile smbFile = RegainToolkit.urlToSmbFile(
        CrawlerToolkit.replaceAuthenticationValuesInURL(url, mAccountPasswordEntry));
   
      if( smbFile.canRead() && !smbFile.isDirectory() ) {
        in = smbFile.getInputStream();
        mLastModifiedDate = new Date(smbFile.lastModified());
       
        return CrawlerToolkit.loadFileFromStream(in,smbFile.getContentLength());
       
      } else {
        throw new RegainException("Can't load content from: "
View Full Code Here

Examples of net.rim.device.api.io.file.ExtendedFileConnection.lastModified()

            ExtendedFileConnection fConn = (ExtendedFileConnection) fConnWrap.getFileConnection();

            Boolean isReadonly = new Boolean( !fConn.canWrite() );
            Boolean isHidden = new Boolean( fConn.isHidden() );
            Double size = new Double( fConn.fileSize() );
            Date dateModified = new Date( fConn.lastModified() );

            int dotIndex = ( args[ 0 ].toString() ).lastIndexOf( (int) '.' );
            String fileExtension = "";
            if( dotIndex >= 0 ) {
                fileExtension = ( args[ 0 ].toString() ).substring( dotIndex );
View Full Code Here

Examples of net.yacy.cora.protocol.ResponseHeader.lastModified()

              final Request request = new Request(
                  null,
                        url,
                        requestHeader.referer() == null ? null : new DigestURI(requestHeader.referer()).hash(),
                        "",
                        cachedResponseHeader.lastModified(),
                        sb.crawler.defaultProxyProfile.handle(),
                        0,
                        0,
                        0,
                        0);
View Full Code Here

Examples of net.yacy.kelondro.data.word.WordReference.lastModified()

        int c = 0;
        Date lm;
        String lms;
        while (i.hasNext() && c < count) {
            entry = i.next();
            lm = new Date(entry.lastModified());
            lms = GenericFormatter.ANSIC_FORMATTER.format(lm);
            prop.put("event_" + c + "_start", lms); // like "Wed May 01 1963 00:00:00 GMT-0600"
            prop.put("event_" + c + "_end", lms); // like "Sat Jun 01 1963 00:00:00 GMT-0600"
            prop.put("event_" + c + "_isDuration", 0); // 0 (only a point) or 1 (period of time)
            prop.putHTML("event_" + c + "_title", "test"); // short title of the event
View Full Code Here

Examples of org.apache.fop.fonts.CachedFontInfo.lastModified()

        if (fontCache != null) {
            fileLastModified = fontFile.lastModified();
            // firstly try and fetch it from cache before loading/parsing the font file
            if (fontCache.containsFont(embedUrl)) {
                CachedFontInfo fontInfo = fontCache.getFont(embedUrl);
                if (fontInfo.lastModified() == fileLastModified) {
                    return fontInfo;
                } else {
                    // out of date cache item
                    fontCache.removeFont(embedUrl);
                }
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.api.VaultFile.lastModified()


    protected void formatFile(ConsoleFile file, Table.Row row, int flags) {
            VaultFile f = (VaultFile) file.unwrap();
            if ((flags & F_FLAG_TIME) > 0) {
                row.addCol(formatDate(f.lastModified()), true);
            }
            if ((flags & F_FLAG_SIZE) > 0) {
                row.addCol(formatSize(f.length()), true);
            }
            if ((flags & F_FLAG_MIME) > 0) {
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.