Project JXTA

net.jxta.impl.shell.bin.grep
Class grep

java.lang.Object
  |
  +--net.jxta.impl.shell.ShellApp
        |
        +--net.jxta.impl.shell.bin.grep.grep

public class grep
extends ShellApp

grep

Since:
JXTA 1.0

Field Summary
protected  boolean countOnly
           
protected  ShellEnv env
           
protected  boolean ignoreCase
           
protected  boolean invertMatch
           
protected  java.lang.String pattern
           
protected  boolean showLineNums
           
 
Fields inherited from class net.jxta.impl.shell.ShellApp
adv, appMiscError, appNoError, appParamError, appSpawned, consin, consout, currentcmdline, dependsOn, group, inputPipe, outputPipe, pipes, returnVar, started, stopped
 
Constructor Summary
grep()
           
 
Method Summary
protected  void grepData(java.lang.String inData)
           
 void help()
           
protected  void readAdvertisement(net.jxta.document.Advertisement adv)
           
protected  void readDocument(net.jxta.document.Document doc)
           
protected  void readStdin()
           
protected  java.lang.String readStdinConsole()
           
protected  java.lang.String readStdinPipe()
           
 int startApp(java.lang.String[] args)
           
 void stopApp()
           
protected  java.lang.String syntax()
           
protected  int syntaxError()
           
 
Methods inherited from class net.jxta.impl.shell.ShellApp
consPollInput, consprint, consprintln, consWaitForInput, getAdvertisement, getEnv, getGroup, getInputConsPipe, getInputPipe, getOutputConsPipe, getOutputPipe, getReturnVariable, init, isRootShell, pollInput, print, println, setAdvertisement, setEnv, setGroup, setInputConsPipe, setInputPipe, setOutputConsPipe, setOutputPipe, setReturnVariable, waitForInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

protected ShellEnv env

countOnly

protected boolean countOnly

ignoreCase

protected boolean ignoreCase

showLineNums

protected boolean showLineNums

invertMatch

protected boolean invertMatch

pattern

protected java.lang.String pattern
Constructor Detail

grep

public grep()
Method Detail

stopApp

public void stopApp()
Overrides:
stopApp in class ShellApp

startApp

public int startApp(java.lang.String[] args)
Overrides:
startApp in class ShellApp

syntaxError

protected int syntaxError()

readStdin

protected void readStdin()
                  throws java.io.IOException

readStdinConsole

protected java.lang.String readStdinConsole()
                                     throws java.io.IOException

readStdinPipe

protected java.lang.String readStdinPipe()
                                  throws java.io.IOException

readAdvertisement

protected void readAdvertisement(net.jxta.document.Advertisement adv)
                          throws java.lang.Exception

readDocument

protected void readDocument(net.jxta.document.Document doc)
                     throws java.lang.Exception

grepData

protected void grepData(java.lang.String inData)

syntax

protected java.lang.String syntax()

help

public void help()
Overrides:
help in class ShellApp

Project JXTA