Interface GenericFile
-
public interface GenericFileInterface representing extension ofFilerequiring special methods for finding child instances and to returnInputStreamproviding file's content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.FilegetChild(java.lang.String name)Returns child instance with the provided name.java.io.InputStreamgetInputStream()Returns input stream of this file content.
-
-
-
Method Detail
-
getChild
java.io.File getChild(java.lang.String name)
Returns child instance with the provided name.- Parameters:
name- name of the child instance- Returns:
- instance of the same class representing the child instance.
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOExceptionReturns input stream of this file content.- Returns:
- input stream instance providing access to this file content
- Throws:
java.io.IOException- if problem happens to open input stream
-
-