@Override public Long call() { try { return file.lastModified(); } catch (final SmbException e) { return Long.valueOf(0); } } }).call(timeout).longValue();
public long lastModified() throws IOException { if (isFile()) return getFSFile().lastModified(); if (isSMB()) try { return getSmbFile().lastModified(); // return TimeoutRequest.lastModified(getSmbFile(), SMB_TIMEOUT); // a timeout request is a bad idea, that will create a lot of concurrent threads during crawling } catch (final SmbException e) { throw new IOException("SMB.lastModified SmbException (" + e.getMessage() + ") for " + toNormalform(false)); } catch (final MalformedURLException e) { throw new IOException("SMB.lastModified MalformedURLException (" + e.getMessage() + ") for " + toNormalform(false)); } return 0; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ public long getLastModified() { try { return lastModified(); } catch( SmbException se ) { } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ public long getDate() { try { return lastModified(); } catch( SmbException se ) { } return 0L; }
@Override public long getDate() { try { return file.lastModified(); } catch(SmbException e) { return 0; } }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ public long getLastModified() { try { return lastModified(); } catch( SmbException se ) { } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ public long getLastModified() { try { return lastModified(); } catch( SmbException se ) { } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ public long getDate() { try { return lastModified(); } catch( SmbException se ) { } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ public long getDate() { try { return lastModified(); } catch( SmbException se ) { } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ public long getDate() { try { return lastModified(); } catch( SmbException se ) { } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ public long getLastModified() { try { return lastModified(); } catch( SmbException se ) { } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ @Override public long getDate () { try { return lastModified(); } catch ( SmbException se ) { log.debug("getDate", se); } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ @Override public long getLastModified () { try { return lastModified(); } catch ( SmbException se ) { log.debug("getLastModified", se); } return 0L; }
/** * This URLConnection method just returns the result of <tt>lastModified</tt>. * * @return the last modified data as milliseconds since Jan 1, 1970 */ @Override public long getDate () { try { return lastModified(); } catch ( SmbException se ) { log.debug("getDate", se); } return 0L; }
protected int compareDates ( SmbFile f1, String f1name, SmbFile f2 ) throws IOException { if ( f1.isDirectory() != f2.isDirectory() ) { return f1.isDirectory() ? -1 : 1; } if ( f1.isDirectory() ) { return f1name.compareToIgnoreCase(f2.getName()); } return f1.lastModified() > f2.lastModified() ? -1 : 1; }
protected int compareDates( SmbFile f1, String f1name, SmbFile f2 ) throws IOException { if( f1.isDirectory() != f2.isDirectory() ) { return f1.isDirectory() ? -1 : 1; } if( f1.isDirectory() ) { return f1name.compareToIgnoreCase( f2.getName() ); } return f1.lastModified() > f2.lastModified() ? -1 : 1; } protected void doDirectory( HttpServletRequest req, HttpServletResponse resp, SmbFile dir ) throws IOException {
protected int compareDates( SmbFile f1, String f1name, SmbFile f2 ) throws IOException { if( f1.isDirectory() != f2.isDirectory() ) { return f1.isDirectory() ? -1 : 1; } if( f1.isDirectory() ) { return f1name.compareToIgnoreCase( f2.getName() ); } return f1.lastModified() > f2.lastModified() ? -1 : 1; } protected void doDirectory( HttpServletRequest req, HttpServletResponse resp, SmbFile dir ) throws IOException {
protected int compareDates( SmbFile f1, String f1name, SmbFile f2 ) throws IOException { if( f1.isDirectory() != f2.isDirectory() ) { return f1.isDirectory() ? -1 : 1; } if( f1.isDirectory() ) { return f1name.compareToIgnoreCase( f2.getName() ); } return f1.lastModified() > f2.lastModified() ? -1 : 1; } protected void doDirectory( HttpServletRequest req, HttpServletResponse resp, SmbFile dir ) throws IOException {
protected int compareDates ( SmbFile f1, String f1name, SmbFile f2 ) throws IOException { if ( f1.isDirectory() != f2.isDirectory() ) { return f1.isDirectory() ? -1 : 1; } if ( f1.isDirectory() ) { return f1name.compareToIgnoreCase(f2.getName()); } return f1.lastModified() > f2.lastModified() ? -1 : 1; }
protected int compareDates( SmbFile f1, String f1name, SmbFile f2 ) throws IOException { if( f1.isDirectory() != f2.isDirectory() ) { return f1.isDirectory() ? -1 : 1; } if( f1.isDirectory() ) { return f1name.compareToIgnoreCase( f2.getName() ); } return f1.lastModified() > f2.lastModified() ? -1 : 1; } protected void doDirectory( HttpServletRequest req, HttpServletResponse resp, SmbFile dir ) throws IOException {