Package org.gjt.sp.jedit.bsh
Class Remote
- java.lang.Object
-
- org.gjt.sp.jedit.bsh.Remote
-
public class Remote extends java.lang.Object
Remote executor class. Posts a script from the command line to a BshServlet or embedded interpreter using (respectively) HTTP or the bsh telnet service. Output is printed to stdout and a numeric return value is scraped from the result.
-
-
Constructor Summary
Constructors Constructor Description Remote()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
eval(java.lang.String url, java.lang.String text)
Evaluate text in the interpreter at url, returning a possible integer return value.static void
main(java.lang.String[] args)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
eval
public static int eval(java.lang.String url, java.lang.String text) throws java.io.IOException
Evaluate text in the interpreter at url, returning a possible integer return value.- Throws:
java.io.IOException
-
-