org.nlogo.api
Class LocalFile
java.lang.Object
org.nlogo.api.File
org.nlogo.api.LocalFile
public class LocalFile
- extends File
Nested classes/interfaces inherited from class org.nlogo.api.File |
File.Mode |
LocalFile
public LocalFile(String filepath)
LocalFile
public LocalFile(String filepath,
String suffix)
getMode
public File.Mode getMode()
- Overrides:
getMode
in class File
getPrintWriter
public PrintWriter getPrintWriter()
- Specified by:
getPrintWriter
in class File
getBufferedReader
public BufferedReader getBufferedReader()
- Overrides:
getBufferedReader
in class File
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in class File
- Throws:
IOException
open
public void open(File.Mode mode)
throws IOException
- Specified by:
open
in class File
- Throws:
IOException
print
public void print(String str)
throws IOException
- Specified by:
print
in class File
- Throws:
IOException
println
public void println(String line)
throws IOException
- Specified by:
println
in class File
- Throws:
IOException
println
public void println()
throws IOException
- Specified by:
println
in class File
- Throws:
IOException
flush
public void flush()
- Specified by:
flush
in class File
close
public void close(boolean ok)
throws IOException
- Specified by:
close
in class File
- Throws:
IOException
getAbsolutePath
public String getAbsolutePath()
- Specified by:
getAbsolutePath
in class File
getPath
public String getPath()
- Specified by:
getPath
in class File
readFile
public static String readFile(File file)
throws IOException
- Throws:
IOException