public abstract class AbstractFileSystemSupport extends java.lang.Object implements MutableFileSystemSupport
Constructor and Description |
---|
AbstractFileSystemSupport() |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
getContents(Path path)
Returns the contents of this file as a char sequence.
|
IEncodingProvider |
getEncodingProvider() |
abstract Path |
getPath(org.eclipse.emf.ecore.resource.Resource res) |
IFilePostProcessor |
getPostProcessor() |
void |
setContents(Path path,
java.lang.CharSequence contents)
Writes the given contents to the given path.
|
void |
setEncodingProvider(IEncodingProvider encodingProvider) |
void |
setPostProcessor(IFilePostProcessor postProcessor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, mkdir, setContentsAsStream
exists, getCharset, getChildren, getContentsAsStream, getLastModification, isFile, isFolder, toURI
public java.lang.CharSequence getContents(Path path)
FileSystemSupport
getContents
in interface FileSystemSupport
path
- the pathpublic void setContents(Path path, java.lang.CharSequence contents)
MutableFileSystemSupport
setContents
in interface MutableFileSystemSupport
path
- the path to write the contents tocontents
- the contents of the filepublic abstract Path getPath(org.eclipse.emf.ecore.resource.Resource res)
@Pure public IEncodingProvider getEncodingProvider()
public void setEncodingProvider(IEncodingProvider encodingProvider)
@Pure public IFilePostProcessor getPostProcessor()
public void setPostProcessor(IFilePostProcessor postProcessor)