public class FileSystemSupportBasedFileSystemAccess extends AbstractFileSystemAccess2 implements IFileSystemAccess, IFileSystemAccessExtension, IFileSystemAccessExtension2, IFileSystemAccessExtension3
DEFAULT_OUTPUT| Constructor and Description |
|---|
FileSystemSupportBasedFileSystemAccess() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateFile(String fileName,
String outputConfigurationName,
CharSequence contents) |
void |
generateFile(String fileName,
String outputConfigurationName,
InputStream content)
Writes binary data to disk.
|
protected Path |
getPath(String fileName,
String outputConfigurationName) |
org.eclipse.emf.common.util.URI |
getURI(String fileName,
String outputConfiguration)
Returns an URI for the specified path.
|
InputStream |
readBinaryFile(String fileName,
String outputConfigurationName)
Creates an InputStream to read a binary file from disk.
|
CharSequence |
readTextFile(String fileName,
String outputConfigurationName)
Reads a text file from disk.
|
void |
setFileSystemSupport(MutableFileSystemSupport fileSystemSupport) |
void |
setProjectName(String projectName) |
generateFile, isFile, readBinaryFile, readTextFile, setContextdeleteFile, deleteFile, generateFile, getCurrentSource, getOutputConfig, getOutputConfigurations, getPathes, getURI, postProcess, postProcess, setCurrentSource, setOutputConfigurations, setOutputPath, setOutputPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteFile, generateFiledeleteFilegetURIgenerateFile, readBinaryFile, readTextFilepublic FileSystemSupportBasedFileSystemAccess()
public void generateFile(String fileName, String outputConfigurationName, CharSequence contents)
generateFile in interface IFileSystemAccessfileName - using '/' as file separatoroutputConfigurationName - the name of the output configurationcontents - the to-be-written contents.public org.eclipse.emf.common.util.URI getURI(String fileName, String outputConfiguration)
IFileSystemAccessExtension2getURI in interface IFileSystemAccessExtension2public void generateFile(String fileName, String outputConfigurationName, InputStream content) throws RuntimeIOException
IFileSystemAccessExtension3IFileSystemAccess.generateFile(String, String, CharSequence)generateFile in interface IFileSystemAccessExtension3RuntimeIOExceptionpublic InputStream readBinaryFile(String fileName, String outputConfigurationName) throws RuntimeIOException
IFileSystemAccessExtension3IFileSystemAccessExtension3.readTextFile(String, String)
.readBinaryFile in interface IFileSystemAccessExtension3RuntimeIOExceptionpublic CharSequence readTextFile(String fileName, String outputConfigurationName) throws RuntimeIOException
IFileSystemAccessExtension3IFileSystemAccessExtension3.readBinaryFile(String, String).readTextFile in interface IFileSystemAccessExtension3RuntimeIOExceptionpublic void setFileSystemSupport(MutableFileSystemSupport fileSystemSupport)
public void setProjectName(String projectName)
Copyright © 2015. All Rights Reserved.