/** * Returns the size of the content (in bytes). * * @return The size of the content (in bytes). * @throws FileSystemException if an error occurs. */ @Override public long getSize() throws FileSystemException { // Do some checking if (!fileObject.getType().hasContent()) { throw new FileSystemException("vfs.provider/get-size-not-file.error", fileObject); } /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-size-write.error", file); } */ try { // Get the size return fileObject.doGetContentSize(); } catch (final Exception exc) { throw new FileSystemException("vfs.provider/get-size.error", exc, fileObject); } }
/** * Returns the size of the content (in bytes). * * @return The size of the content (in bytes). * @throws FileSystemException if an error occurs. */ @Override public long getSize() throws FileSystemException { // Do some checking if (!fileObject.getType().hasContent()) { throw new FileSystemException("vfs.provider/get-size-not-file.error", fileObject); } /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-size-write.error", file); } */ try { // Get the size return fileObject.doGetContentSize(); } catch (final Exception exc) { throw new FileSystemException("vfs.provider/get-size.error", exc, fileObject); } }
/** * Returns the size of the content (in bytes). * * @return The size of the content (in bytes). * @throws FileSystemException if an error occurs. */ @Override public long getSize() throws FileSystemException { // Do some checking if (!fileObject.getType().hasContent()) { throw new FileSystemException("vfs.provider/get-size-not-file.error", fileObject); } /* * if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw * new FileSystemException("vfs.provider/get-size-write.error", file); } */ try { // Get the size return fileObject.doGetContentSize(); } catch (final Exception exc) { throw new FileSystemException("vfs.provider/get-size.error", exc, fileObject); } }
/** * Returns the size of the content (in bytes). * @return The size of the content (in bytes). * @throws FileSystemException if an error occurs. */ @Override public long getSize() throws FileSystemException { // Do some checking if (!fileObject.getType().hasContent()) { throw new FileSystemException("vfs.provider/get-size-not-file.error", fileObject); } /* if (getThreadData().getState() == STATE_WRITING || getThreadData().getState() == STATE_RANDOM_ACCESS) { throw new FileSystemException("vfs.provider/get-size-write.error", file); } */ try { // Get the size return fileObject.doGetContentSize(); } catch (final Exception exc) { throw new FileSystemException("vfs.provider/get-size.error", exc, fileObject); } }