org.luaj.lib.j2se
Class J2seIoLib

java.lang.Object
  extended by IoLib
      extended by org.luaj.lib.j2se.J2seIoLib

public class J2seIoLib
extends IoLib

Implementation of the lua io library for J2se using RandomAccessFile to implement seek.


Constructor Summary
J2seIoLib()
           
J2seIoLib(int index)
           
 
Method Summary
static void install(LTable globals)
           
protected  IoLib newInstance(int index)
           
protected  File openFile(java.lang.String filename, boolean readMode, boolean appendMode, boolean updateMode, boolean binaryMode)
           
protected  File openProgram(java.lang.String prog, java.lang.String mode)
           
protected  File tmpFile()
           
protected  File wrapStdin()
           
protected  File wrapStdout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2seIoLib

public J2seIoLib()

J2seIoLib

public J2seIoLib(int index)
Method Detail

install

public static void install(LTable globals)

newInstance

protected IoLib newInstance(int index)

wrapStdin

protected File wrapStdin()
                  throws java.io.IOException
Throws:
java.io.IOException

wrapStdout

protected File wrapStdout()
                   throws java.io.IOException
Throws:
java.io.IOException

openFile

protected File openFile(java.lang.String filename,
                        boolean readMode,
                        boolean appendMode,
                        boolean updateMode,
                        boolean binaryMode)
                 throws java.io.IOException
Throws:
java.io.IOException

openProgram

protected File openProgram(java.lang.String prog,
                           java.lang.String mode)
                    throws java.io.IOException
Throws:
java.io.IOException

tmpFile

protected File tmpFile()
                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2007-2013 Luaj.org. All Rights Reserved.