public class Control extends Object
| Constructor and Description |
|---|
Control() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyScript(Document doc,
Span span,
String script)
apply script
script to span span of
document doc. |
static void |
processDocument(Document doc,
BufferedWriter writer,
boolean viewable,
int docNo)
apply the processDocument script to (all of) document
doc. |
static void |
processSentence(Document doc,
Span sentenceSpan)
apply the processSentence script to span
sentenceSpan
of document doc. |
public static void processDocument(Document doc, BufferedWriter writer, boolean viewable, int docNo) throws IOException
doc.
In addition, if Jet parameter WriteSGML.type is set, write the document
in SGML format to file response- inputFileName. If viewable
is true, open a window displaying the document, and label the window "Jet
Document docNo".IOExceptionpublic static void processSentence(Document doc, Span sentenceSpan)
sentenceSpan
of document doc.Copyright © 2016 New York University. All rights reserved.