public class ParallelFileSystemAccess extends java.lang.Object implements IFileSystemAccess2
DEFAULT_OUTPUT
Constructor and Description |
---|
ParallelFileSystemAccess(IFileSystemAccess2 delegate,
IResourceDescription.Delta delta,
FileSystemAccessQueue fileSystemAccessQueue,
java.lang.String sourceFolder,
EclipseResourceFileSystemAccess2.IFileCallback fileCallback) |
Modifier and Type | Method and Description |
---|---|
void |
deleteFile(java.lang.String fileName) |
void |
deleteFile(java.lang.String fileName,
java.lang.String outputConfigurationName) |
void |
generateFile(java.lang.String fileName,
java.lang.CharSequence contents) |
void |
generateFile(java.lang.String fileName,
java.io.InputStream content)
Writes binary data to disk.
|
void |
generateFile(java.lang.String fileName,
java.lang.String outputConfigurationName,
java.lang.CharSequence contents) |
void |
generateFile(java.lang.String fileName,
java.lang.String outputCfgName,
java.io.InputStream content)
Writes binary data to disk.
|
org.eclipse.emf.common.util.URI |
getURI(java.lang.String path)
Returns an URI for the specified path in the default output location.
|
org.eclipse.emf.common.util.URI |
getURI(java.lang.String path,
java.lang.String outputConfiguration)
Returns an URI for the specified path.
|
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.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)
Reads a text file from disk.
|
java.lang.CharSequence |
readTextFile(java.lang.String fileName,
java.lang.String outputCfgName)
Reads a text file from disk.
|
protected void |
sendAsync(Procedures.Procedure1<? super IFileSystemAccess2> procedure) |
@FinalFieldsConstructor public ParallelFileSystemAccess(IFileSystemAccess2 delegate, IResourceDescription.Delta delta, FileSystemAccessQueue fileSystemAccessQueue, java.lang.String sourceFolder, EclipseResourceFileSystemAccess2.IFileCallback fileCallback)
protected void sendAsync(Procedures.Procedure1<? super IFileSystemAccess2> procedure)
public void deleteFile(java.lang.String fileName)
deleteFile
in interface IFileSystemAccess
fileName
- using '/' as file separatorpublic void generateFile(java.lang.String fileName, java.lang.CharSequence contents)
generateFile
in interface IFileSystemAccess
fileName
- using '/' as file separatorcontents
- the to-be-written contents.public void generateFile(java.lang.String fileName, java.lang.String outputConfigurationName, java.lang.CharSequence contents)
generateFile
in interface IFileSystemAccess
fileName
- using '/' as file separatoroutputConfigurationName
- the name of the output configurationcontents
- the to-be-written contents.public void deleteFile(java.lang.String fileName, java.lang.String outputConfigurationName)
deleteFile
in interface IFileSystemAccessExtension
fileName
- using '/' as file separatoroutputConfigurationName
- the name of the output configurationpublic org.eclipse.emf.common.util.URI getURI(java.lang.String path, java.lang.String outputConfiguration)
IFileSystemAccessExtension2
getURI
in interface IFileSystemAccessExtension2
public org.eclipse.emf.common.util.URI getURI(java.lang.String path)
IFileSystemAccessExtension2
getURI
in interface IFileSystemAccessExtension2
public void generateFile(java.lang.String fileName, java.lang.String outputCfgName, java.io.InputStream content) throws RuntimeIOException
IFileSystemAccessExtension3
IFileSystemAccess.generateFile(String, String, CharSequence)
generateFile
in interface IFileSystemAccessExtension3
RuntimeIOException
public void generateFile(java.lang.String fileName, java.io.InputStream content) throws RuntimeIOException
IFileSystemAccessExtension3
IFileSystemAccess.generateFile(String, CharSequence)
generateFile
in interface IFileSystemAccessExtension3
RuntimeIOException
public java.io.InputStream readBinaryFile(java.lang.String fileName, java.lang.String outputCfgName) throws RuntimeIOException
IFileSystemAccessExtension3
IFileSystemAccessExtension3.readTextFile(String, String)
.readBinaryFile
in interface IFileSystemAccessExtension3
RuntimeIOException
public java.io.InputStream readBinaryFile(java.lang.String fileName) throws RuntimeIOException
IFileSystemAccessExtension3
IFileSystemAccessExtension3.readTextFile(String)
.readBinaryFile
in interface IFileSystemAccessExtension3
RuntimeIOException
public java.lang.CharSequence readTextFile(java.lang.String fileName, java.lang.String outputCfgName) throws RuntimeIOException
IFileSystemAccessExtension3
IFileSystemAccessExtension3.readBinaryFile(String, String)
.readTextFile
in interface IFileSystemAccessExtension3
RuntimeIOException
public java.lang.CharSequence readTextFile(java.lang.String fileName) throws RuntimeIOException
IFileSystemAccessExtension3
IFileSystemAccessExtension3.readBinaryFile(String)
.readTextFile
in interface IFileSystemAccessExtension3
RuntimeIOException
public boolean isFile(java.lang.String path, java.lang.String outputConfigurationName) throws RuntimeIOException
IFileSystemAccess2
true
if the file at the described location exists and is a normal file
(not a directory). Otherwise false
.isFile
in interface IFileSystemAccess2
path
- 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.RuntimeIOException
public boolean isFile(java.lang.String path) throws RuntimeIOException
IFileSystemAccess2
true
if the file at the described location exists and is a normal file
(not a directory). Otherwise false
.isFile
in interface IFileSystemAccess2
path
- 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.RuntimeIOException