|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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, 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 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, subargs, 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.IOException
public abstract boolean isstdfile()
public abstract void close() throws java.io.IOException
java.io.IOException
public 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.IOException
public LuaValue get(LuaValue key)
LuaValue
INDEX
.
get
in class LuaValue
key
- the key to look up, must not be NIL
or null
LuaValue
for that key, or NIL
if not found and no metatagLuaValue.get(int)
,
LuaValue.get(String)
,
LuaValue.rawget(LuaValue)
public int type()
LuaValue
type
in class LuaValue
TNIL
,
TBOOLEAN
,
TNUMBER
,
TSTRING
,
TTABLE
,
TFUNCTION
,
TUSERDATA
,
TTHREAD
LuaValue.typename()
public java.lang.String typename()
LuaValue
typename
in class LuaValue
LuaValue.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 LuaValue
LuaValue.tostring()
,
LuaValue.optjstring(String)
,
LuaValue.checkjstring()
,
LuaValue.isstring()
,
TSTRING
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |