dk.apaq.vfs.impl.nativefs
Class NativeFile
java.lang.Object
dk.apaq.vfs.impl.nativefs.NativeNode
dk.apaq.vfs.impl.nativefs.NativeFile
- All Implemented Interfaces:
- File, Node, Serializable, Comparable
public class NativeFile
- extends NativeNode
- implements File
- Author:
- mzk
- See Also:
- Serialized Form
| Methods inherited from class dk.apaq.vfs.impl.nativefs.NativeNode |
canRead, canWrite, compareTo, compareTo, delete, delete, equals, equals, getBaseName, getFileSystem, getLastModified, getName, getParent, getPath, getSuffix, isDirectory, isFile, isHidden, isRoot, moveTo, moveTo, setLastModified, setName, toUri |
| 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 |
NativeFile
public NativeFile(NativeFileSystem fs,
File file)
throws FileNotFoundException
- Throws:
FileNotFoundException
getInputStream
public InputStream getInputStream()
throws IOException
- Description copied from interface:
File
- Retrieves the inputstream of the file to read from.
- Specified by:
getInputStream in interface File
- Returns:
- The inputstream.
- Throws:
IOException - Throw if an error occures while retrieving the inputstream.
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Description copied from interface:
File
- Retrieves the outputstream of the file to write to.
- Specified by:
getOutputStream in interface File
- Returns:
- The outputstream.
- Throws:
IOException - Throw if an error occures while retrieving the outputstream.
getLength
public long getLength()
- Description copied from interface:
File
- Retrieves the size/length of the file in bytes.
- Specified by:
getLength in interface File
- Returns:
- The size/length of the file in bytes.
Copyright © 2011. All Rights Reserved.