public abstract class AbstractFileSystemAccess2 extends AbstractFileSystemAccess implements IFileSystemAccess2
IFileSystemAccess2.DEFAULT_OUTPUT| Constructor and Description |
|---|
AbstractFileSystemAccess2() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateFile(String fileName,
InputStream content)
Writes binary data to disk.
|
boolean |
isFile(String path)
Tests whether the file exists at the location in the default output configuration.
|
boolean |
isFile(String path,
String outputConfigurationName)
Tests whether the file exists at the location denoted by the output configuration.
|
InputStream |
readBinaryFile(String fileName)
Creates an InputStream to read a binary file from disk.
|
CharSequence |
readTextFile(String fileName)
Reads a text file from disk.
|
void |
setContext(Object context)
Sets the context to further configure this file system access instance.
|
deleteFile, deleteFile, generateFile, getCurrentSource, getOutputConfig, getOutputConfigurations, getPathes, getURI, postProcess, postProcess, setCurrentSource, setOutputConfigurations, setOutputPath, setOutputPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteFile, generateFile, generateFiledeleteFilegetURI, getURIgenerateFile, readBinaryFile, readTextFilepublic void generateFile(String fileName, InputStream content)
IFileSystemAccessExtension3IFileSystemAccess.generateFile(String, CharSequence)generateFile in interface IFileSystemAccessExtension3public InputStream readBinaryFile(String fileName)
IFileSystemAccessExtension3IFileSystemAccessExtension3.readTextFile(String).readBinaryFile in interface IFileSystemAccessExtension3public CharSequence readTextFile(String fileName)
IFileSystemAccessExtension3IFileSystemAccessExtension3.readBinaryFile(String).readTextFile in interface IFileSystemAccessExtension3public void setContext(Object context)
context - a context from which project configuration can be obtained. Supported context types
depend on the concrete implementation, but Resource is usually a good fit.public boolean isFile(String path) throws RuntimeIOException
IFileSystemAccess2true if the file at the described location exists and is a normal file
(not a directory). Otherwise false.isFile in interface IFileSystemAccess2path - using '/' as path separatortrue when the file at the given path exists and is a normal file. Will return false when
the path belongs to a directory.RuntimeIOExceptionpublic boolean isFile(String path, String outputConfigurationName) throws RuntimeIOException
IFileSystemAccess2true if the file at the described location exists and is a normal file
(not a directory). Otherwise false.isFile in interface IFileSystemAccess2path - using '/' as path separatoroutputConfigurationName - the name of the output configurationtrue when the file at the given path exists and is a normal file. Will return false when
the path belongs to a directory.RuntimeIOExceptionCopyright © 2015. All Rights Reserved.