private synchronized FileObject processFile( FileName name, boolean useCache ) throws FileSystemException { if ( !super.getRootName().getRootURI().equals( name.getRootURI() ) ) { throw new FileSystemException( "vfs.provider/mismatched-fs-for-name.error", new Object[] { name, super.getRootName(), name.getRootURI() } ); } else { FileObject file; if ( useCache ) { file = super.getFileFromCache( name ); } else { file = null; } if ( file == null ) { try { file = this.createFile( (AbstractFileName) name ); } catch ( Exception var5 ) { return null; } file = super.decorateFileObject( file ); if ( useCache ) { super.putFileToCache( file ); } } if ( super.getFileSystemManager().getCacheStrategy().equals( CacheStrategy.ON_RESOLVE ) ) { file.refresh(); } return file; } }
file.refresh();
@Override public void refresh() throws FileSystemException { decoratedFileObject.refresh(); }
@Override public void refresh() throws FileSystemException { decoratedFileObject.refresh(); }
@Override public void refresh() throws FileSystemException { decoratedFileObject.refresh(); }
@Override public void refresh() throws FileSystemException { decoratedFileObject.refresh(); }
public void refresh() throws FileSystemException { parent.refresh(); }
/** * Clear the cache and re-request the file object */ private void refresh() { try { this.file.refresh(); } catch (final FileSystemException fse) { LOG.error(fse.getLocalizedMessage(), fse); } }
@Override public void performLongOperation(CheckBeforeActionResult checkBeforeActionResult) { try { currentLocation.refresh(); } catch (FileSystemException e) { LOGGER.error("Can't refresh location", e); } goToFileObject(currentLocation); }
/** * Clear the cache and re-request the file object */ private void refresh() { try { this.file.refresh(); } catch (final FileSystemException fse) { LOG.error(fse.getLocalizedMessage(), fse); } }
/** * Refresh file information. * * @throws FileSystemException if an error occurs. * @since 2.0 */ @Override public void refresh() throws FileSystemException { super.refresh(); if (file != null) { file.refresh(); } }
/** * Refresh file information. * * @throws FileSystemException if an error occurs. * @since 2.0 */ @Override public void refresh() throws FileSystemException { super.refresh(); if (file != null) { file.refresh(); } }
@Override public void refresh() { try { this.fileObject.refresh(); } catch (FileSystemException e) { throw new VFSFileSystemException(e); } }
/** * Clear the cache and re-request the file object */ private void refresh() { try { this.file.refresh(); } catch (final FileSystemException fse) { LOG.error(fse.getLocalizedMessage(), fse); } }
@Override public void refresh() { try { this.fileObject.refresh(); } catch (FileSystemException e) { throw new VFSFileSystemException(e); } }
/** * Refresh file information. * * @throws FileSystemException if an error occurs. * @since 2.0 */ @Override public void refresh() throws FileSystemException { super.refresh(); if (file != null) { file.refresh(); } }
/** * Clear the cache and re-request the file object */ private void refresh() { try { this.file.refresh(); } catch (final FileSystemException fse) { LOG.error(fse.getLocalizedMessage(), fse); } }
/** * Refresh file information. * @throws FileSystemException if an error occurs. * @since 2.0 */ @Override public void refresh() throws FileSystemException { super.refresh(); if (file != null) { file.refresh(); } }
/** * */ public void validateFileCache() { FileObject currentDirectory = filechooser.getCurrentDirectoryObject(); if (currentDirectory == null) { return; } try { currentDirectory.refresh(); } catch (FileSystemException ex) { } if (loadThread != null) { loadThread.cancel(true); } setBusy(true, ++fetchID); loadThread = executor.submit(new LoadFilesThread(currentDirectory, fetchID)); }
public LoadingInfo(FileObject fileObject, boolean tailing, OpenMode openMode) throws IOException { this.fileObject = fileObject; this.tailing = tailing; friendlyUrl = fileObject.getName().getFriendlyURI(); fileObject.refresh(); InputStream inputStream = fileObject.getContent().getInputStream(); byte[] probe = loadProbe(inputStream, 10000); gzipped = checkIfIsGzipped(probe, probe.length); inputStreamBufferedStart = gzipped ? ungzip(probe) : probe; if (openMode == FROM_START || gzipped) { PushbackInputStream pushBackInputStream = new PushbackInputStream(inputStream, probe.length + 1); // +1 to support empty files pushBackInputStream.unread(probe); observableInputStreamImpl = new ObservableInputStreamImpl(pushBackInputStream); contentInputStream = gzipped ? new GZIPInputStream(observableInputStreamImpl) : observableInputStreamImpl; } else { RandomAccessContent randomAccessContent = fileObject.getContent().getRandomAccessContent(READ); randomAccessContent.seek(randomAccessContent.length()); observableInputStreamImpl = new ObservableInputStreamImpl(randomAccessContent.getInputStream()); contentInputStream = observableInputStreamImpl; } if (fileObject.getType().hasContent()) { lastFileSize = fileObject.getContent().getSize(); } }