public class InMemoryFileSystemAccess extends AbstractFileSystemAccess2
DEFAULT_OUTPUT
Constructor and Description |
---|
InMemoryFileSystemAccess() |
Modifier and Type | Method and Description |
---|---|
void |
deleteFile(java.lang.String fileName,
java.lang.String outputConfigName) |
void |
generateFile(java.lang.String fileName,
java.lang.String outputConfigName,
java.lang.CharSequence contents) |
void |
generateFile(java.lang.String fileName,
java.lang.String outputCfgName,
java.io.InputStream content)
Writes binary data to disk.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllFiles() |
java.util.Map<java.lang.String,byte[]> |
getBinaryFiles() |
protected java.lang.String |
getFileName(java.lang.String fileName,
java.lang.String outputConfigName) |
java.util.Map<java.lang.String,java.lang.CharSequence> |
getFiles()
Deprecated.
|
java.lang.String |
getTextFileEncoding() |
java.util.Map<java.lang.String,java.lang.CharSequence> |
getTextFiles() |
org.eclipse.emf.common.util.URI |
getURI(java.lang.String fileName,
java.lang.String outputConfiguration)
Returns an URI for the specified path.
|
java.io.InputStream |
readBinaryFile(java.lang.String fileName,
java.lang.String outputCfgName)
Creates an InputStream to read a binary file from disk.
|
java.lang.CharSequence |
readTextFile(java.lang.String fileName,
java.lang.String outputCfgName)
Reads a text file from disk.
|
void |
setPostProcessor(IFilePostProcessor postProcessor) |
void |
setTextFileEnconding(java.lang.String textFileEnconding) |
generateFile, isFile, isFile, readBinaryFile, readTextFile, setContext
deleteFile, generateFile, getCurrentSource, getOutputConfig, getOutputConfigurations, getPathes, getURI, postProcess, postProcess, setCurrentSource, setOutputConfigurations, setOutputPath, setOutputPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteFile, generateFile
getURI
public void generateFile(java.lang.String fileName, java.lang.String outputConfigName, java.lang.CharSequence contents)
fileName
- using '/' as file separatoroutputConfigName
- the name of the output configurationcontents
- the to-be-written contents.public java.lang.String getTextFileEncoding()
public void setTextFileEnconding(java.lang.String textFileEnconding)
public void setPostProcessor(IFilePostProcessor postProcessor)
protected java.lang.String getFileName(java.lang.String fileName, java.lang.String outputConfigName)
public void deleteFile(java.lang.String fileName, java.lang.String outputConfigName)
deleteFile
in interface IFileSystemAccessExtension
deleteFile
in class AbstractFileSystemAccess
fileName
- using '/' as file separatoroutputConfigName
- the name of the output configurationpublic java.util.Map<java.lang.String,java.lang.CharSequence> getTextFiles()
public java.util.Map<java.lang.String,byte[]> getBinaryFiles()
public java.util.Map<java.lang.String,java.lang.Object> getAllFiles()
@Deprecated public java.util.Map<java.lang.String,java.lang.CharSequence> getFiles()
getTextFiles()
or getAllFiles()
.public org.eclipse.emf.common.util.URI getURI(java.lang.String fileName, java.lang.String outputConfiguration)
IFileSystemAccessExtension2
public void generateFile(java.lang.String fileName, java.lang.String outputCfgName, java.io.InputStream content)
IFileSystemAccessExtension3
IFileSystemAccess.generateFile(String, String, CharSequence)
public java.io.InputStream readBinaryFile(java.lang.String fileName, java.lang.String outputCfgName) throws RuntimeIOException
IFileSystemAccessExtension3
IFileSystemAccessExtension3.readTextFile(String, String)
.RuntimeIOException
public java.lang.CharSequence readTextFile(java.lang.String fileName, java.lang.String outputCfgName) throws RuntimeIOException
IFileSystemAccessExtension3
IFileSystemAccessExtension3.readBinaryFile(String, String)
.RuntimeIOException