org.nlogo.agent
Class Importer
java.lang.Object
org.nlogo.agent.Importer
- All Implemented Interfaces:
- ImportErrorHandler
- Direct Known Subclasses:
- Importer3D
public class Importer
- extends Object
- implements ImportErrorHandler
Importer
public Importer(Importer.ErrorHandler errorHandler,
World world,
ImporterUser importerUser,
Importer.StringReader stringReader)
importWorld
public void importWorld(BufferedReader fileBuff)
throws IOException
- Throws:
IOException
importExtensionData
public void importExtensionData()
hasMoreLines
public boolean hasMoreLines(boolean returnBlankLines)
throws IOException
- Returns:
- whether there more lines in the current section, that
is, if we have not yet reached the next sentinel (or reached end
of file)
- Throws:
IOException
next
public String next()
showError
public void showError(String title,
String message,
String defaultAction)
- Specified by:
showError
in interface ImportErrorHandler