/** * This will prepare the fileObject to get resynchronized with the underlying filesystem if required. * * @throws FileSystemException if an error occurs. */ @Override public void refresh() throws FileSystemException { // Detach from the file try { detach(); } catch (final Exception e) { throw new FileSystemException("vfs.provider/resync.error", fileName, e); } }
/** * This will prepare the fileObject to get resynchronized with the underlying filesystem if required. * * @throws FileSystemException if an error occurs. */ @Override public void refresh() throws FileSystemException { // Detach from the file try { detach(); } catch (final Exception e) { throw new FileSystemException("vfs.provider/resync.error", fileName, e); } }
/** * This will prepare the fileObject to get resynchronized with the underlying filesystem if required. * * @throws FileSystemException if an error occurs. */ @Override public void refresh() throws FileSystemException { // Detach from the file try { detach(); } catch (final Exception e) { throw new FileSystemException("vfs.provider/resync.error", fileName, e); } }
/** * This will prepare the fileObject to get resynchronized with the underlaying filesystem if required. * @throws FileSystemException if an error occurs. */ @Override public void refresh() throws FileSystemException { // Detach from the file try { detach(); } catch (final Exception e) { throw new FileSystemException("vfs.provider/resync.error", fileName, e); } }
/** * Closes this file, and its content. * * @throws FileSystemException if an error occurs. */ @Override public void close() throws FileSystemException { FileSystemException exc = null; // Close the content if (content != null) { try { content.close(); content = null; } catch (final FileSystemException e) { exc = e; } } // Detach from the file try { detach(); } catch (final Exception e) { exc = new FileSystemException("vfs.provider/close.error", fileName, e); } if (exc != null) { throw exc; } }
/** * Closes this file, and its content. * * @throws FileSystemException if an error occurs. */ @Override public void close() throws FileSystemException { FileSystemException exc = null; // Close the content if (content != null) { try { content.close(); content = null; } catch (final FileSystemException e) { exc = e; } } // Detach from the file try { detach(); } catch (final Exception e) { exc = new FileSystemException("vfs.provider/close.error", fileName, e); } if (exc != null) { throw exc; } }
/** * Closes this file, and its content. * * @throws FileSystemException if an error occurs. */ @Override public void close() throws FileSystemException { FileSystemException exc = null; synchronized (fileSystem) { // Close the content if (content != null) { try { content.close(); content = null; } catch (final FileSystemException e) { exc = e; } } // Detach from the file try { detach(); } catch (final Exception e) { exc = new FileSystemException("vfs.provider/close.error", fileName, e); } if (exc != null) { throw exc; } } }