Jet
Class Control

java.lang.Object
  extended byJet.Control

public class Control
extends java.lang.Object

the Control class provides the methods for interpreting Jet scripts.


Constructor Summary
Control()
           
 
Method Summary
static void applyScript(Document doc, Span span, java.lang.String script)
          apply script script to span span of document doc.
static void processDocument(Document doc, java.io.OutputStreamWriter 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Control

public Control()
Method Detail

processDocument

public static void processDocument(Document doc,
                                   java.io.OutputStreamWriter writer,
                                   boolean viewable,
                                   int docNo)
                            throws java.io.IOException
apply the processDocument script to (all of) document 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".

Throws:
java.io.IOException

processSentence

public static void processSentence(Document doc,
                                   Span sentenceSpan)
apply the processSentence script to span sentenceSpan of document doc.


applyScript

public static void applyScript(Document doc,
                               Span span,
                               java.lang.String script)
apply script script to span span of document doc.