public class TGNewFileFileStore extends FileStore implements IFileStore
EMPTY_FILE_INFO_ARRAY, EMPTY_STRING_ARRAY
Constructor and Description |
---|
TGNewFileFileStore(URI uri)
Create a new new file store from URI
|
Modifier and Type | Method and Description |
---|---|
String[] |
childNames(int options,
IProgressMonitor monitor) |
IFileInfo |
fetchInfo(int options,
IProgressMonitor monitor) |
IFileStore |
getChild(String name)
Returns null because we don't have children.
|
String |
getName() |
IFileStore |
getParent()
New files need a parent, so they get a dummy one.
|
TextGridObject |
getTextGridObject() |
InputStream |
openInputStream(int options,
IProgressMonitor monitor)
Returns an input stream with the object's
initial content, if
available, or an empty input stream otherwise.
|
OutputStream |
openOutputStream(int options,
IProgressMonitor monitor) |
URI |
toURI() |
childInfos, childStores, copy, copyDirectory, copyFile, delete, equals, fetchInfo, getChild, getFileStore, getFileSystem, hashCode, isParentOf, mkdir, move, putInfo, toLocalFile, toString
getAdapter
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
childInfos, childStores, copy, delete, fetchInfo, getChild, getFileStore, getFileSystem, isParentOf, mkdir, move, putInfo, toLocalFile, toString
getAdapter
public TGNewFileFileStore(URI uri)
uri
- public String[] childNames(int options, IProgressMonitor monitor) throws CoreException
childNames
in interface IFileStore
childNames
in class FileStore
CoreException
public IFileInfo fetchInfo(int options, IProgressMonitor monitor) throws CoreException
fetchInfo
in interface IFileStore
fetchInfo
in class FileStore
CoreException
public IFileStore getChild(String name)
getChild
in interface IFileStore
getChild
in class FileStore
FileStore.getChild(java.lang.String)
public String getName()
getName
in interface IFileStore
getName
in class FileStore
public IFileStore getParent()
getParent
in interface IFileStore
getParent
in class FileStore
FileStore.getParent()
,
TGDummyParent
public InputStream openInputStream(int options, IProgressMonitor monitor) throws CoreException
openInputStream
in interface IFileStore
openInputStream
in class FileStore
CoreException
FileStore.openInputStream(int,
org.eclipse.core.runtime.IProgressMonitor)
,
TextGridObject.setInitialContent(byte[])
public URI toURI()
toURI
in interface IFileStore
toURI
in class FileStore
public OutputStream openOutputStream(int options, IProgressMonitor monitor) throws CoreException
openOutputStream
in interface IFileStore
openOutputStream
in class FileStore
CoreException
public TextGridObject getTextGridObject() throws CrudServiceException
CrudServiceException