/** * Checks if this fileObject is the same file as {@code destFile} just with a different name. E.g. for case * insensitive filesystems like windows. * * @param destFile The file to compare to. * @return true if the FileObjects are the same. * @throws FileSystemException if an error occurs. */ protected boolean isSameFile(final FileObject destFile) throws FileSystemException { attach(); return doIsSameFile(destFile); }
/** * Checks if this fileObject is the same file as {@code destFile} just with a different name. E.g. for case * insensitive filesystems like windows. * * @param destFile The file to compare to. * @return true if the FileObjects are the same. * @throws FileSystemException if an error occurs. */ protected boolean isSameFile(final FileObject destFile) throws FileSystemException { attach(); return doIsSameFile(destFile); }
/** * Checks if this fileObject is the same file as {@code destFile} just with a different name. E.g. for case * insensitive filesystems like windows. * * @param destFile The file to compare to. * @return true if the FileObjects are the same. * @throws FileSystemException if an error occurs. */ protected boolean isSameFile(final FileObject destFile) throws FileSystemException { attach(); return doIsSameFile(destFile); }
/** * Checks if this fileObject is the same file as {@code destFile} just with a different * name. E.g. for case insensitive filesystems like windows. * * @param destFile The file to compare to. * @return true if the FileObjects are the same. * @throws FileSystemException if an error occurs. */ protected boolean isSameFile(final FileObject destFile) throws FileSystemException { attach(); return doIsSameFile(destFile); }
/** * Returns the file's content. * * @return the FileContent for this FileObject. * @throws FileSystemException if an error occurs. */ @Override public FileContent getContent() throws FileSystemException { synchronized (fs) { attach(); if (content == null) { content = doCreateFileContent(); } return content; } }
/** * Returns the file's content. * * @return the FileContent for this FileObject. * @throws FileSystemException if an error occurs. */ @Override public FileContent getContent() throws FileSystemException { synchronized (monitorLock) { attach(); if (content == null) { content = doCreateFileContent(); } return content; } }
/** * Returns the file's content. * * @return the FileContent for this FileObject. * @throws FileSystemException if an error occurs. */ @Override public FileContent getContent() throws FileSystemException { synchronized (fileSystem) { attach(); if (content == null) { content = doCreateFileContent(); } return content; } }
/** * Returns the file's content. * @return the FileContent for this FileObject. * @throws FileSystemException if an error occurs. */ @Override public FileContent getContent() throws FileSystemException { synchronized (fs) { attach(); if (content == null) { content = doCreateFileContent(); } return content; } }
/** * Returns the file's type. * * @return The FileType. * @throws FileSystemException if an error occurs. */ @Override public FileType getType() throws FileSystemException { synchronized (fs) { attach(); // VFS-210: get the type only if requested for try { if (type == null) { setFileType(doGetType()); } if (type == null) { setFileType(FileType.IMAGINARY); } } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-type.error", e, fileName); } return type; } }
/** * Returns the file's type. * * @return The FileType. * @throws FileSystemException if an error occurs. */ @Override public FileType getType() throws FileSystemException { synchronized (monitorLock) { attach(); // VFS-210: get the type only if requested for try { if (type == null) { injectType(doGetType()); } if (type == null) { injectType(FileType.IMAGINARY); } } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-type.error", e, fileName); } return type; } }
/** * Returns the file's type. * * @return The FileType. * @throws FileSystemException if an error occurs. */ @Override public FileType getType() throws FileSystemException { synchronized (fileSystem) { attach(); // VFS-210: get the type only if requested for try { if (type == null) { setFileType(doGetType()); } if (type == null) { setFileType(FileType.IMAGINARY); } } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-type.error", e, fileName); } return type; } }
/** * Returns the file's type. * @return The FileType. * @throws FileSystemException if an error occurs. */ @Override public FileType getType() throws FileSystemException { synchronized (fs) { attach(); // VFS-210: get the type only if requested for try { if (type == null) { setFileType(doGetType()); } if (type == null) { setFileType(FileType.IMAGINARY); } } catch (final Exception e) { throw new FileSystemException("vfs.provider/get-type.error", e, fileName); } return type; } }