org.nlogo.api
Class RemoteFile

java.lang.Object
  extended by org.nlogo.api.File
      extended by org.nlogo.api.RemoteFile

public class RemoteFile
extends File


Nested Class Summary
 
Nested classes/interfaces inherited from class org.nlogo.api.File
File.Mode
 
Field Summary
 
Fields inherited from class org.nlogo.api.File
eof, LINE_BREAK, pos, PROG_DELIM_REST, PROG_DELIM_START
 
Constructor Summary
RemoteFile(String filepath)
           
RemoteFile(String filepath, String suffix)
           
 
Method Summary
 void close(boolean ok)
           
static boolean exists(String path)
           
 void flush()
           
 String getAbsolutePath()
           
 BufferedReader getBufferedReader()
           
 InputStream getInputStream()
           
 File.Mode getMode()
           
 String getPath()
           
 PrintWriter getPrintWriter()
           
 void open(File.Mode mode)
           
 void print(String str)
           
 void println()
           
 void println(String line)
           
 
Methods inherited from class org.nlogo.api.File
readFile, restoreLines, stripLines, validName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteFile

public RemoteFile(String filepath)

RemoteFile

public RemoteFile(String filepath,
                  String suffix)
Method Detail

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

exists

public static boolean exists(String path)

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