public abstract class AbstractFileSystemAccess2 extends AbstractFileSystemAccess implements IFileSystemAccess2
IFileSystemAccess2.DEFAULT_OUTPUT| Constructor and Description |
|---|
AbstractFileSystemAccess2() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateFile(java.lang.String fileName,
java.io.InputStream content)
Writes binary data to disk.
|
boolean |
isFile(java.lang.String path)
Tests whether the file exists at the location in the default output configuration.
|
boolean |
isFile(java.lang.String path,
java.lang.String outputConfigurationName)
Tests whether the file exists at the location denoted by the output configuration.
|
java.io.InputStream |
readBinaryFile(java.lang.String fileName)
Creates an InputStream to read a binary file from disk.
|
java.lang.CharSequence |
readTextFile(java.lang.String fileName)
Reads a text file from disk.
|
void |
setContext(java.lang.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(java.lang.String fileName,
java.io.InputStream content)
IFileSystemAccessExtension3IFileSystemAccess.generateFile(String, CharSequence)generateFile in interface IFileSystemAccessExtension3public java.io.InputStream readBinaryFile(java.lang.String fileName)
IFileSystemAccessExtension3IFileSystemAccessExtension3.readTextFile(String).readBinaryFile in interface IFileSystemAccessExtension3public java.lang.CharSequence readTextFile(java.lang.String fileName)
IFileSystemAccessExtension3IFileSystemAccessExtension3.readBinaryFile(String).readTextFile in interface IFileSystemAccessExtension3public void setContext(java.lang.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(java.lang.String path)
throws org.eclipse.xtext.util.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.org.eclipse.xtext.util.RuntimeIOExceptionpublic boolean isFile(java.lang.String path,
java.lang.String outputConfigurationName)
throws org.eclipse.xtext.util.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.org.eclipse.xtext.util.RuntimeIOException