/** * Returns the last modified time of this file. Is only called if * {@link #doGetType} does not return {@link FileType#IMAGINARY}. * <p> * This implementation throws an exception. * * @return The last modification time. * @throws Exception if an error occurs. */ // [IntelliJ] WI-1874 ++++++++++++++++++++ protected long doGetLastModifiedTime(boolean accurate) throws Exception { return doGetLastModifiedTime(); }
/** * Returns the last-modified timestamp. * * @return The last modified timestamp. * @throws FileSystemException if an error occurs. */ @Override public long getLastModifiedTime() throws FileSystemException { /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-last-modified-writing.error", file); } */ if (!fileObject.getType().hasAttributes()) { throw new FileSystemException("vfs.provider/get-last-modified-no-exist.error", fileObject); } try { return fileObject.doGetLastModifiedTime(); } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-last-modified.error", fileObject, e); } }
/** * Returns the last-modified timestamp. * * @return The last modified timestamp. * @throws FileSystemException if an error occurs. */ @Override public long getLastModifiedTime() throws FileSystemException { /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-last-modified-writing.error", file); } */ if (!fileObject.getType().hasAttributes()) { throw new FileSystemException("vfs.provider/get-last-modified-no-exist.error", fileObject); } try { return fileObject.doGetLastModifiedTime(); } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-last-modified.error", fileObject, e); } }
/** * Returns the last-modified timestamp. * * @return The last modified timestamp. * @throws FileSystemException if an error occurs. */ @Override public long getLastModifiedTime() throws FileSystemException { /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-last-modified-writing.error", file); } */ if (!fileObject.getType().hasAttributes()) { throw new FileSystemException("vfs.provider/get-last-modified-no-exist.error", fileObject); } try { return fileObject.doGetLastModifiedTime(); } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-last-modified.error", fileObject, e); } }
/** * Returns the last-modified timestamp. * @return The last modified timestamp. * @throws FileSystemException if an error occurs. */ // [IntelliJ] WI-1874 ++++++++++++++++++++ @Override public long getLastModifiedTime(boolean accurate) throws FileSystemException // [IntelliJ] WI-1874 ------------------ { /* if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw new FileSystemException("vfs.provider/get-last-modified-writing.error", file); } */ if (!fileObject.getType().hasAttributes()) { throw new FileSystemException("vfs.provider/get-last-modified-no-exist.error", fileObject); } try { return fileObject.doGetLastModifiedTime(accurate); } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-last-modified.error", fileObject, e); } }