public interface ProjectRepository
| Modifier and Type | Method and Description |
|---|---|
InputStream |
get(String filePath)
Returns the contents of the specified file
|
Set<String> |
getPaths(String path)
Returns the immediate child paths of the specified path.
|
boolean |
isDirectory(String path)
Returns
true if and only if the specified path corresponds to a directory. |
boolean |
isFile(String path)
Returns
true if and only if the specified path corresponds to a file. |
InputStream get(String filePath) throws PathNotFoundException, IOException
filePath - the file path.PathNotFoundException - if the specified path does not exist.IOException - if there was a problem retrieving the contents.boolean isFile(String path) throws IOException
true if and only if the specified path corresponds to a file.path - the path.IOException - if there was a problem retrieving the contents.boolean isDirectory(String path) throws IOException
true if and only if the specified path corresponds to a directory.path - the file path.IOException - if there was a problem retrieving the contents.Set<String> getPaths(String path) throws PathNotFoundException, IOException
path - the path to get child paths of. null is equivalent to the empty string or // indicate directories.PathNotFoundException - if the specified path does not exist.IOException - if there was a problem retrieving the list of child paths.Copyright © 2004-2014. All Rights Reserved.