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, setOutputPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteFile, generateFile, generateFile
deleteFile
getURI, getURI
generateFile, readBinaryFile, readTextFile
public void generateFile(java.lang.String fileName, java.io.InputStream content)
IFileSystemAccessExtension3
IFileSystemAccess.generateFile(String, CharSequence)
generateFile
in interface IFileSystemAccessExtension3
public java.io.InputStream readBinaryFile(java.lang.String fileName)
IFileSystemAccessExtension3
IFileSystemAccessExtension3.readTextFile(String)
.readBinaryFile
in interface IFileSystemAccessExtension3
public java.lang.CharSequence readTextFile(java.lang.String fileName)
IFileSystemAccessExtension3
IFileSystemAccessExtension3.readBinaryFile(String)
.readTextFile
in interface IFileSystemAccessExtension3
public 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 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
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