|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unido.ls5.eti.client.FileVirtualFile
public class FileVirtualFile
This is an implementation of VirtualFile
that uses a real
file object as means to store the data.
Constructor Summary | |
---|---|
FileVirtualFile(File file,
String filename)
Instanciate this VirtualFile with a given File and a virtual filename. |
Method Summary | |
---|---|
String |
getFilename()
Retrieves the virtual filename of this virtual file |
InputStream |
getInputStream()
Provides the InputStream where the data of the represented file can be read from. |
String |
toString()
Retrieve a debug output String for this virtual file containing the virtual filename and the absolute path of the underlying file object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileVirtualFile(File file, String filename) throws FileNotFoundException
file
- the given filefilename
- the virtual filename
FileNotFoundException
- file does not existMethod Detail |
---|
public String getFilename()
getFilename
in interface VirtualFile
VirtualFile.getFilename()
public InputStream getInputStream() throws IOException
VirtualFile
getInputStream
in interface VirtualFile
FileInputStream
to the underlying file object.
IOException
- may be thrown if the underlying implementation uses some I/O to
read the data from.VirtualFile.getInputStream()
public String toString()
toString
in interface VirtualFile
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |