Package com.bc.ceres.metadata
Interface SimpleFileSystem
- 
- All Known Subinterfaces:
- CommandLineContext
 - All Known Implementing Classes:
- DefaultSimpleFileSystem
 
 public interface SimpleFileSystemAn abstraction of the used filesystem.- Since:
- Ceres 0.13.2
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadercreateReader(String path)Returns a reader for the given path.WritercreateWriter(String path)Returns a writer for the given path.booleanisFile(String path)Checks, if the given path is a file or not (then e.g.String[]list(String path)Lists all elements inside the given directory path.
 
- 
- 
- 
Method Detail- 
createReaderReader createReader(String path) throws IOException Returns a reader for the given path.- Parameters:
- path- The path in the filesystem
- Returns:
- a reader instance
- Throws:
- IOException- If an I/O error occurs
 
 - 
createWriterWriter createWriter(String path) throws IOException Returns a writer for the given path.- Parameters:
- path- The path in the filesystem
- Returns:
- a writer instance
- Throws:
- IOException- If an I/O error occurs
 
 - 
listString[] list(String path) throws IOException Lists all elements inside the given directory path.- Parameters:
- path- The path in the filesystem
- Returns:
- An array of strings naming the files and directories in the
         directory denoted by this directory path.  The array will be
         empty if the directory is empty.  Returns nullif this path does not denote a directory.
- Throws:
- IOException- If an I/O error occurs
 
 - 
isFileboolean isFile(String path) Checks, if the given path is a file or not (then e.g. a directory)- Parameters:
- path- to a file or directory
- Returns:
- true, if given path is a file on the fs
 
 
- 
 
-