Project JXTA

net.jxta.impl.shell.bin.wc
Class wc

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

public class wc
extends ShellApp

wc

Since:
JXTA 1.0

Field Summary
protected  ShellEnv env
           
protected  boolean showChars
           
protected  boolean showLines
           
protected  boolean showWords
           
 
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
wc()
           
 
Method Summary
 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  void wcCount(java.lang.String inData)
           
 
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

showLines

protected boolean showLines

showWords

protected boolean showWords

showChars

protected boolean showChars
Constructor Detail

wc

public wc()
Method Detail

stopApp

public void stopApp()
Overrides:
stopApp in class ShellApp

startApp

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

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

wcCount

protected void wcCount(java.lang.String inData)

syntax

protected java.lang.String syntax()

help

public void help()
Overrides:
help in class ShellApp

Project JXTA