org.nlogo.nvm
Interface FileManager
- All Known Implementing Classes:
- DefaultFileManager
public interface FileManager
getPrefix
String getPrefix()
attachPrefix
String attachPrefix(String filename)
throws MalformedURLException
- Throws:
MalformedURLException
setPrefix
void setPrefix(String newPrefix)
setPrefix
void setPrefix(URL newPrefix)
eof
boolean eof()
throws IOException
- Throws:
IOException
hasCurrentFile
boolean hasCurrentFile()
closeCurrentFile
void closeCurrentFile()
throws IOException
- Throws:
IOException
flushCurrentFile
void flushCurrentFile()
throws IOException
- Throws:
IOException
deleteFile
void deleteFile(String filename)
throws IOException
- Throws:
IOException
closeAllFiles
void closeAllFiles()
throws IOException
- Throws:
IOException
fileExists
boolean fileExists(String filePath)
throws IOException
- Throws:
IOException
openFile
void openFile(String newFileName)
throws IOException
- Throws:
IOException
getFile
org.nlogo.util.File getFile(String newFileName)
ensureMode
void ensureMode(int openMode)
throws IOException
- Throws:
IOException
getErrorInfo
String getErrorInfo()
throws IOException
- Throws:
IOException
read
Object read(World world)
throws IOException,
CompilerException
- Throws:
IOException
CompilerException
readLine
String readLine()
throws IOException
- Throws:
IOException
readChars
String readChars(int num)
throws IOException
- Throws:
IOException