| org.eclipse.ui.internal.ide.undo.IFileContentDescription
IFileContentDescription | public interface IFileContentDescription (Code) | | IFileContentDescription is a description of a file's content.
This class is not intended to be instantiated or used by clients.
since: 3.3 |
Method Summary | |
public boolean | exists() Returns whether this file content description still exists. | public String | getCharset() Returns the name of a charset encoding to be used when decoding the
contents into characters. | public InputStream | getContents() Returns an open input stream on the contents of the file described. |
exists | public boolean exists()(Code) | | Returns whether this file content description still exists. If it does
not exist, it will be unable to produce the contents.
true if this description exists, andfalse if it does not |
getCharset | public String getCharset() throws CoreException(Code) | | Returns the name of a charset encoding to be used when decoding the
contents into characters. Returns null if a charset
has not been explicitly specified.
the name of a charset, or null throws: CoreException - any CoreException encountered while determining the characterset |
getContents | public InputStream getContents() throws CoreException(Code) | | Returns an open input stream on the contents of the file described. The
client is responsible for closing the stream when finished.
an input stream containing the contents of the file throws: CoreException - any CoreException encountered retrieving the contents |
|
|