org.nlogo.api
Class File

java.lang.Object
  extended by org.nlogo.api.File
Direct Known Subclasses:
LocalFile, RemoteFile

public abstract class File
extends Object


Nested Class Summary
static class File.Mode
           
 
Field Summary
 boolean eof
           
static String LINE_BREAK
           
 long pos
           
static String PROG_DELIM_REST
           
static String PROG_DELIM_START
           
 
Constructor Summary
File()
           
 
Method Summary
abstract  void close(boolean ok)
           
abstract  void flush()
           
abstract  String getAbsolutePath()
           
 BufferedReader getBufferedReader()
           
abstract  InputStream getInputStream()
           
 File.Mode getMode()
           
abstract  String getPath()
           
abstract  PrintWriter getPrintWriter()
           
abstract  void open(File.Mode mode)
           
abstract  void print(String str)
           
abstract  void println()
           
abstract  void println(String line)
           
 String readFile()
           
static String restoreLines(String s)
           
static String stripLines(String st)
           
static boolean validName(String filename)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

File

public File()
Method Detail

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