|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VirtualFile
This interface is used by every jETI related API to represent the
tool's input/output files. It hides the fact how the data of this
file is stored and simply provides the InputStream
to
read it. An implementation could for example store the data in
a real File
object or in a byte array.
Method Summary | |
---|---|
String |
getFilename()
As the implementation is independent from real files, it must have a file name that is handled separately. |
InputStream |
getInputStream()
Provides the InputStream where the data of the represented file can be read from. |
String |
toString()
The implementing class is forced to override Object.toString()
to produce some usable debug data, such as size, path, ... |
Method Detail |
---|
InputStream getInputStream() throws IOException
IOException
- may be thrown if the underlying implementation uses some I/O to
read the data from.String getFilename()
String toString()
Object.toString()
to produce some usable debug data, such as size, path, ...
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |