public class JavaIOManager extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
currentLoadDirectory
The current directory where to load theories.
|
protected String |
currentSaveDirectory
The current directory where to save theories.
|
protected String |
currentTheoryFileName
The filename of the current opened theory.
|
Constructor and Description |
---|
JavaIOManager(Component parent) |
Modifier and Type | Method and Description |
---|---|
Theory |
loadTheory()
Load a theory from an input device, typically a file.
|
void |
resetDefaultTheoryFileName() |
protected String |
save(String theory) |
String |
saveTheory(String theory) |
String |
saveTheoryAs(String theory)
Save the engine's current theory to an output device, typically a file.
|
protected String currentLoadDirectory
protected String currentSaveDirectory
protected String currentTheoryFileName
public JavaIOManager(Component parent)
public Theory loadTheory() throws Exception
alice.tuprolog.Theory
object,
or null
if the operation is cancelled.Exception
- if something goes wrong.public String saveTheoryAs(String theory) throws Exception
theory
- The String containing the theory to be saved.null
if the operation is cancelled.Exception
- if something goes wrong.protected String save(String theory) throws IOException
IOException
public void resetDefaultTheoryFileName()
Copyright © 2015. All rights reserved.