public abstract class AbstractFileSystemAccess2 extends AbstractFileSystemAccess implements IFileSystemAccessExtension3, IFileSystemAccessExtension4
IFileSystemAccessExtension3 and IFileSystemAccessExtension4.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,
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, waitgenerateFile, readBinaryFile, readTextFilegenerateFilegetURIpublic 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, String outputConfigurationName) throws RuntimeIOException
isFile in interface IFileSystemAccessExtension4path - 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.