org.nlogo.api
Class File
java.lang.Object
org.nlogo.api.File
- Direct Known Subclasses:
- LocalFile, RemoteFile
public abstract class File
- extends Object
Constructor Summary |
File()
|
PROG_DELIM_START
public static final String PROG_DELIM_START
- See Also:
- Constant Field Values
PROG_DELIM_REST
public static final String PROG_DELIM_REST
- See Also:
- Constant Field Values
LINE_BREAK
public static final String LINE_BREAK
- See Also:
- Constant Field Values
eof
public boolean eof
pos
public long pos
File
public File()
getMode
public File.Mode getMode()
getPrintWriter
public abstract PrintWriter getPrintWriter()
getBufferedReader
public BufferedReader getBufferedReader()
open
public abstract void open(File.Mode mode)
throws IOException
- Throws:
IOException
print
public abstract void print(String str)
throws IOException
- Throws:
IOException
println
public abstract void println(String line)
throws IOException
- Throws:
IOException
println
public abstract void println()
throws IOException
- Throws:
IOException
flush
public abstract void flush()
close
public abstract void close(boolean ok)
throws IOException
- Throws:
IOException
getInputStream
public abstract InputStream getInputStream()
throws IOException
- Throws:
IOException
getAbsolutePath
public abstract String getAbsolutePath()
getPath
public abstract String getPath()
stripLines
public static String stripLines(String st)
restoreLines
public static String restoreLines(String s)
validName
public static boolean validName(String filename)
readFile
public String readFile()
throws IOException
- Throws:
IOException