Package party.iroiro.luajava.luaj
Class JseIoLib
java.lang.Object
org.luaj.vm2.Varargs
org.luaj.vm2.LuaValue
org.luaj.vm2.LuaFunction
org.luaj.vm2.lib.LibFunction
org.luaj.vm2.lib.TwoArgFunction
org.luaj.vm2.lib.IoLib
party.iroiro.luajava.luaj.JseIoLib
public class JseIoLib
extends org.luaj.vm2.lib.IoLib
JSE implementation of the I/O library.
Copied from LuaJ libraries.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected final classFile implementation for JSE I/O operations.Nested classes/interfaces inherited from class org.luaj.vm2.lib.IoLib
org.luaj.vm2.lib.IoLib.File -
Field Summary
Fields inherited from class org.luaj.vm2.lib.IoLib
FILE_NAMES, FTYPE_NAMED, FTYPE_STDERR, FTYPE_STDIN, FTYPE_STDOUT, globals, IO_NAMESFields inherited from class org.luaj.vm2.lib.LibFunction
name, opcodeFields inherited from class org.luaj.vm2.LuaFunction
s_metatableFields inherited from class org.luaj.vm2.LuaValue
ADD, CALL, CONCAT, DIV, EMPTYSTRING, ENV, EQ, FALSE, INDEX, IPAIRS, LE, LEN, LT, METATABLE, MINUSONE, MOD, MODE, MUL, NEWINDEX, NIL, NILS, NONE, NOVALS, ONE, PAIRS, POW, SUB, TBOOLEAN, TFUNCTION, TINT, TLIGHTUSERDATA, TNIL, TNONE, TNUMBER, TOSTRING, TRUE, TSTRING, TTABLE, TTHREAD, TUSERDATA, TVALUE, TYPE_NAMES, UNM, ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.luaj.vm2.lib.IoLib.FileopenFile(String filename, boolean readMode, boolean appendMode, boolean updateMode, boolean binaryMode) protected org.luaj.vm2.lib.IoLib.FileopenProgram(String prog, String mode) protected org.luaj.vm2.lib.IoLib.FiletmpFile()protected org.luaj.vm2.lib.IoLib.Fileprotected org.luaj.vm2.lib.IoLib.Fileprotected org.luaj.vm2.lib.IoLib.FileMethods inherited from class org.luaj.vm2.lib.IoLib
_file_close, _file_flush, _file_lines, _file_read, _file_seek, _file_setvbuf, _file_write, _io_close, _io_flush, _io_index, _io_input, _io_lines, _io_open, _io_output, _io_popen, _io_read, _io_tmpfile, _io_type, _io_write, _lines_iter, call, freadall, freadbytes, freadline, freadnumber, freaduntilMethods inherited from class org.luaj.vm2.lib.TwoArgFunction
call, call, call, invokeMethods inherited from class org.luaj.vm2.lib.LibFunction
bind, bind, call, newupe, newupl, newupn, tojstringMethods inherited from class org.luaj.vm2.LuaFunction
checkfunction, classnamestub, getmetatable, isfunction, name, optfunction, strvalue, type, typenameMethods inherited from class org.luaj.vm2.LuaValue
add, add, add, and, arg, arg1, argerror, argerror, aritherror, aritherror, arithmt, arithmtwith, assert_, buffer, call, callmt, checkboolean, checkclosure, checkdouble, checkglobals, checkint, checkinteger, checkjstring, checklong, checkmetatag, checknotnil, checknumber, checknumber, checkstring, checktable, checkthread, checkuserdata, checkuserdata, compareerror, compareerror, comparemt, concat, concat, concatmt, concatTo, concatTo, concatTo, div, div, div, divInto, eq, eq_b, eqmtcall, equals, error, get, get, get, gettable, gt, gt, gt, gt_b, gt_b, gt_b, gteq, gteq, gteq, gteq_b, gteq_b, gteq_b, illegal, inext, initupvalue1, invoke, invoke, invoke, invoke, invoke, invokemethod, invokemethod, invokemethod, invokemethod, invokemethod, invokemethod, isboolean, isclosure, isint, isinttype, islong, isnil, isnumber, isstring, istable, isthread, isuserdata, isuserdata, isvalidkey, len, lenerror, length, listOf, listOf, load, lt, lt, lt, lt_b, lt_b, lt_b, lteq, lteq, lteq, lteq_b, lteq_b, lteq_b, metatableOf, metatag, method, method, method, method, method, method, mod, mod, mod, modFrom, mul, mul, mul, narg, neg, neq, neq_b, next, not, onInvoke, optboolean, optclosure, optdouble, optint, optinteger, optjstring, optlong, optnumber, optstring, opttable, optthread, optuserdata, optuserdata, optvalue, or, pow, pow, pow, powWith, powWith, presize, raweq, raweq, raweq, raweq, raweq, rawget, rawget, rawget, rawlen, rawset, rawset, rawset, rawset, rawset, rawset, rawset, rawsetlist, set, set, set, set, set, set, set, setmetatable, settable, strcmp, strcmp, strongvalue, sub, sub, sub, subargs, subFrom, subFrom, tableOf, tableOf, tableOf, tableOf, tableOf, tableOf, tailcallOf, testfor_b, toboolean, tobyte, tochar, todouble, tofloat, toint, tolong, tonumber, toshort, tostring, toString, touserdata, touserdata, typerror, unimplemented, userdataOf, userdataOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, varargsOf, varargsOf, varargsOf, varargsOf, varargsOf, varargsOfMethods inherited from class org.luaj.vm2.Varargs
argcheck, checkboolean, checkclosure, checkdouble, checkfunction, checkint, checkinteger, checkjstring, checklong, checknotnil, checknumber, checkstring, checktable, checkthread, checkuserdata, checkuserdata, checkvalue, dealias, eval, isfunction, isnil, isnoneornil, isnumber, isstring, istable, isTailcall, isthread, isuserdata, isvalue, optboolean, optclosure, optdouble, optfunction, optint, optinteger, optjstring, optlong, optnumber, optstring, opttable, optthread, optuserdata, optuserdata, optvalue, toboolean, tobyte, tochar, todouble, tofloat, toint, tojstring, tolong, toshort, touserdata, touserdata, type
-
Constructor Details
-
JseIoLib
public JseIoLib()
-
-
Method Details
-
wrapStdin
protected org.luaj.vm2.lib.IoLib.File wrapStdin()- Specified by:
wrapStdinin classorg.luaj.vm2.lib.IoLib
-
wrapStdout
protected org.luaj.vm2.lib.IoLib.File wrapStdout()- Specified by:
wrapStdoutin classorg.luaj.vm2.lib.IoLib
-
wrapStderr
protected org.luaj.vm2.lib.IoLib.File wrapStderr()- Specified by:
wrapStderrin classorg.luaj.vm2.lib.IoLib
-
openFile
protected org.luaj.vm2.lib.IoLib.File openFile(String filename, boolean readMode, boolean appendMode, boolean updateMode, boolean binaryMode) throws IOException - Specified by:
openFilein classorg.luaj.vm2.lib.IoLib- Throws:
IOException
-
tmpFile
protected org.luaj.vm2.lib.IoLib.File tmpFile()- Specified by:
tmpFilein classorg.luaj.vm2.lib.IoLib
-
openProgram
- Specified by:
openProgramin classorg.luaj.vm2.lib.IoLib
-