exists.
-
Overrides
-
TextDocumentFactory.createDocumentObject(URI)
Returns
- An object implementing the IDocument interface that represents the contents of the
given file
Exceptions
-
IOException
getExtension(URI) Method
protected static String getExtension(URI uriFile)
getTemplate(URI, String) Method
protected Reader getTemplate(URI uriFile,
String sTemplateId)
Description copied from DefaultDocumentHandler.getTemplate(URI, String)
This method may be overridden to return default content for a new file created using
this handler. The default implementation returns null, resulting in a blank file.
-
Overrides
-
DefaultDocumentHandler.getTemplate(URI, String)
Parameters
-
uriFile
- Name of the new file being created
Returns
- A java.io.Reader object that will be used to write the contents of the new file
registerExtension(String) Method
protected boolean registerExtension(String sExt)
resolveUnknownPriority(IDocumentHandler.IHandlerContext) Method
public int resolveUnknownPriority(IDocumentHandler.IHandlerContext hc)
Description copied from TextDocumentFactory.resolveUnknownPriority(IDocumentHandler.IHandlerContext)
Declares that documents created by this factor have reasonable faith
that they can correctly understand .txt files, but only if the file
doesn't contain telltale binary characters (in the first 1K).
-
Overrides
-
TextDocumentFactory.resolveUnknownPriority(IDocumentHandler.IHandlerContext)
Parameters
-
hc
- Handler context containing relevant information about the file.