|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jawk.ext.AbstractExtension
org.jawk.ext.StdinExtension
public class StdinExtension
Enable stdin processing in Jawk, to be used in conjunction with the -ni parameter. Since normal input processing is turned off via -ni, this is provided to enable a way to read input from stdin.
To use:
StdinGetline() == 1 { print "--> " $0 }
The extension functions are as follows:
Field Summary |
---|
Fields inherited from class org.jawk.ext.AbstractExtension |
---|
jrt, vm |
Constructor Summary | |
---|---|
StdinExtension()
|
Method Summary | |
---|---|
java.lang.String[] |
extensionKeywords()
All the extended keywords supported by this extension. |
java.lang.String |
getExtensionName()
The name of the extension package. |
java.lang.Object |
invoke(java.lang.String keyword,
java.lang.Object[] args)
Invoke extension as a method. |
Methods inherited from class org.jawk.ext.AbstractExtension |
---|
checkNumArgs, getAssocArrayParameterPositions, init, toAwkString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jawk.ext.JawkExtension |
---|
getAssocArrayParameterPositions, init |
Constructor Detail |
---|
public StdinExtension() throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.lang.String getExtensionName()
JawkExtension
getExtensionName
in interface JawkExtension
public java.lang.String[] extensionKeywords()
JawkExtension
Note: Jawk will throw a runtime exception if the keyword collides with any other keyword in the system, extension or otherwise.
extensionKeywords
in interface JawkExtension
public java.lang.Object invoke(java.lang.String keyword, java.lang.Object[] args)
JawkExtension
invoke
in interface JawkExtension
keyword
- The extension keyword.args
- Arguments to the extension.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |