wood.keith.opentools.otnode
Class OTEditorKit
- public class OTEditorKit
- extends TextEditorKit
- This class registers the OpenTools-specific TextEditorKit which defines where to find the text scanner that understands that syntax.
- Version:
- 1.0 12 September 2001
- 1.1 19 February 2002
- Author:
- Keith Wood (kbwood@iprimus.com.au)
initOpenTool
public static void initOpenTool(byte majorVersion,
byte minorVersion)
- Register the TextEditorKit for OpenTools files. Provides the needed OpenTools interface required to register the TextEditorKit which knows the internals of this file type.
- Parameters:
majorVersion - the major version of the current OpenTools API
minorVersion - the minor version of the current OpenTools API
createScanner
public Scanner createScanner()
- Create an instance of the appropriate Scanner class to use with this kit.
- Returns:
- a Scanner instance appropriate for documents of this class
getContentType
public String getContentType()
- Get the MIME type of the data that this kit provides support for.
- Returns:
- MIME type supported
clone
public Object clone()
- Create a copy of the editor kit. This allows an implementation to serve as a prototype for others, so that they can be quickly created.
- Returns:
- new instance of the editor kit