|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.com.zip.cs.Editor
public class Editor
Run the external editor on a file.
Ttycmd| Field Summary | |
|---|---|
static String |
DFLT_EXTERNAL_EDITOR
The default external editor, currently " vi". |
| Constructor Summary | |
|---|---|
Editor(File f)
Constructs an Editor for an existing File. |
|
| Method Summary | |
|---|---|
static void |
edit(File f)
Edit the supplied File with the external editor. |
static String |
edit(String txt)
Edit the supplied text string with the external editor. |
static String |
getEditor()
Get the default external editor. |
String |
getText()
Return the text currently stored in the file being edited. |
void |
run()
|
static void |
setEditor(String ne)
Set the default external editor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DFLT_EXTERNAL_EDITOR
vi".
This value is used if the system property au.com.zip.cs.env.EDITOR
is not set.
Util.getenv(String),
Constant Field Values| Constructor Detail |
|---|
public Editor(File f)
File.
f - the File to edit| Method Detail |
|---|
public static final String getEditor()
public static final void setEditor(String ne)
ne - the new external editor
public final String getText()
throws IOException
IOExceptionpublic static void edit(File f)
File with the external editor.
f - the File to edit
public static String edit(String txt)
throws IOException
txt - the text to edit
IOExceptionpublic void run()
run in interface Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||