|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.luaj.vm2.Varargs
org.luaj.vm2.LuaValue
org.luaj.vm2.lib.IoLib.File
protected abstract class IoLib.File
| Field Summary |
|---|
| Fields inherited from class org.luaj.vm2.LuaValue |
|---|
ADD, CALL, CONCAT, DIV, EMPTYSTRING, ENV, EQ, FALSE, INDEX, LE, LEN, LT, METATABLE, MINUSONE, MOD, MODE, MUL, NEWINDEX, NIL, NILS, NONE, NOVALS, ONE, POW, SUB, TBOOLEAN, TFUNCTION, TINT, TLIGHTUSERDATA, TNIL, TNONE, TNUMBER, TOSTRING, TRUE, TSTRING, TTABLE, TTHREAD, TUSERDATA, TVALUE, TYPE_NAMES, UNM, ZERO |
| Constructor Summary | |
|---|---|
protected |
IoLib.File()
|
| Method Summary | |
|---|---|
abstract void |
close()
|
abstract void |
flush()
|
LuaValue |
get(LuaValue key)
Get a value in a table including metatag processing using LuaValue.INDEX. |
abstract boolean |
isclosed()
|
abstract boolean |
isstdfile()
|
abstract int |
peek()
|
abstract int |
read()
|
abstract int |
read(byte[] bytes,
int offset,
int length)
|
abstract int |
remaining()
|
abstract int |
seek(java.lang.String option,
int bytecount)
|
abstract void |
setvbuf(java.lang.String mode,
int size)
|
java.lang.String |
tojstring()
Convert to human readable String for any type. |
int |
type()
Get the enumeration value for the type of this value. |
java.lang.String |
typename()
Get the String name of the type of this value. |
abstract void |
write(LuaString string)
|
| Methods inherited from class org.luaj.vm2.Varargs |
|---|
argcheck, checkboolean, checkclosure, checkdouble, checkfunction, checkint, checkinteger, checkjstring, checklong, checknotnil, checknumber, checkstring, checktable, checkthread, checkuserdata, checkuserdata, checkvalue, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected IoLib.File()
| Method Detail |
|---|
public abstract void write(LuaString string)
throws java.io.IOException
java.io.IOException
public abstract void flush()
throws java.io.IOException
java.io.IOExceptionpublic abstract boolean isstdfile()
public abstract void close()
throws java.io.IOException
java.io.IOExceptionpublic abstract boolean isclosed()
public abstract int seek(java.lang.String option,
int bytecount)
throws java.io.IOException
java.io.IOException
public abstract void setvbuf(java.lang.String mode,
int size)
public abstract int remaining()
throws java.io.IOException
java.io.IOException
public abstract int peek()
throws java.io.IOException,
java.io.EOFException
java.io.IOException
java.io.EOFException
public abstract int read()
throws java.io.IOException,
java.io.EOFException
java.io.IOException
java.io.EOFException
public abstract int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
java.io.IOExceptionpublic LuaValue get(LuaValue key)
LuaValueLuaValue.INDEX.
get in class LuaValuekey - the key to look up, must not be LuaValue.NIL or null
LuaValue for that key, or LuaValue.NIL if not found and no metatagLuaValue.get(int),
LuaValue.get(String),
LuaValue.rawget(LuaValue)public int type()
LuaValue
type in class LuaValueLuaValue.TNIL,
LuaValue.TBOOLEAN,
LuaValue.TNUMBER,
LuaValue.TSTRING,
LuaValue.TTABLE,
LuaValue.TFUNCTION,
LuaValue.TUSERDATA,
LuaValue.TTHREADLuaValue.typename()public java.lang.String typename()
LuaValue
typename in class LuaValueLuaValue.TYPE_NAMES
corresponding to the type of this value:
"nil", "boolean", "number", "string",
"table", "function", "userdata", "thread"LuaValue.type()public java.lang.String tojstring()
LuaValue
tojstring in class LuaValueLuaValue.tostring(),
LuaValue.optjstring(String),
LuaValue.checkjstring(),
LuaValue.isstring(),
LuaValue.TSTRING
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||