org.nlogo.agent
Class Importer

java.lang.Object
  extended by org.nlogo.agent.Importer
All Implemented Interfaces:
ImportErrorHandler
Direct Known Subclasses:
Importer3D

public class Importer
extends Object
implements ImportErrorHandler


Nested Class Summary
static interface Importer.ErrorHandler
           
static interface Importer.StringReader
           
static class Importer.StringReaderException
           
 
Constructor Summary
Importer(Importer.ErrorHandler errorHandler, World world, ImporterUser importerUser, Importer.StringReader stringReader)
           
 
Method Summary
 boolean hasMoreLines(boolean returnBlankLines)
           
 void importExtensionData()
           
 void importWorld(BufferedReader fileBuff)
           
 String next()
           
 void showError(String title, String message, String defaultAction)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Importer

public Importer(Importer.ErrorHandler errorHandler,
                World world,
                ImporterUser importerUser,
                Importer.StringReader stringReader)
Method Detail

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