au.com.prunge.jgenfile
Interface GetFileSizeOperation
- All Superinterfaces:
- FileOperation, ItemOperation, Operation
- All Known Implementing Classes:
- LocalGetFileSizeOperation
- public interface GetFileSizeOperation
- extends FileOperation
An operation that retrieves the size of a file.
- Version:
- 1.0
- Author:
- Peter Runge
Method Summary |
long |
getSizeInBytes()
Returns the size of the file in bytes, or -1 if
the file size cannot be determined. |
getSizeInBytes
public long getSizeInBytes()
throws OperationNotFinishedException,
JGenFileException
- Returns the size of the file in bytes, or -1 if
the file size cannot be determined.
- Returns:
- the size of the file in bytes, or -1.
- Throws:
OperationNotFinishedException
- if this method
was called and the run() method has not
finished or has not been called.
JGenFileException
- if another error occurs.