dk.apaq.vfs
Interface File
- All Superinterfaces:
- Comparable, Node, Serializable
- All Known Implementing Classes:
- CifsFile, LayeredFile, NativeFile, RamFile, SftpFile, SubFile
public interface File
- extends Node
- Author:
- mzk
| Methods inherited from interface dk.apaq.vfs.Node |
canRead, canWrite, compareTo, delete, equals, getBaseName, getFileSystem, getLastModified, getName, getParent, getPath, getSuffix, isDirectory, isFile, isHidden, moveTo, moveTo, setLastModified, setName, toUri |
getInputStream
InputStream getInputStream()
throws IOException
- Retrieves the inputstream of the file to read from.
- Returns:
- The inputstream.
- Throws:
IOException - Throw if an error occures while retrieving the inputstream.
getOutputStream
OutputStream getOutputStream()
throws IOException
- Retrieves the outputstream of the file to write to.
- Returns:
- The outputstream.
- Throws:
IOException - Throw if an error occures while retrieving the outputstream.
getLength
long getLength()
throws IOException
- Retrieves the size/length of the file in bytes.
- Returns:
- The size/length of the file in bytes.
- Throws:
IOException - Throw if an error occures while retrieving the size/length.
Copyright © 2011. All Rights Reserved.