|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.dfki.mycbr.io.XMLImporter
public final class XMLImporter
Imports myCBR's internal XML files. A myCBR project is a zip-file that contains several XML files (x.myCBR, x.cb, x.expl, x.config)
| Field Summary | |
|---|---|
static java.lang.String |
TMP_PART_OF_CONCEPT
|
| Constructor Summary | |
|---|---|
XMLImporter(Project p)
Initializes this with the given project, path and name. |
|
| Method Summary | |
|---|---|
static void |
copyInputStream(java.io.InputStream in,
java.io.OutputStream out)
Copies the given input stream to the output stream. |
void |
doImport()
Imports the model from the specified XML files to the given project. |
int |
getCurrentNumberOfCases()
Returns the number of cases that have been imported so far. |
Project |
getProject()
Returns the current project. |
int |
getTotalNumberOfCases()
Returns the number of cases that have been imported. |
void |
importCases()
Starts a new thread importing the cases. |
void |
importModel()
Extracts the XML-files from the original project's zip-file. |
boolean |
isImporting()
Returns true, when the import thread is still alive, false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TMP_PART_OF_CONCEPT
| Constructor Detail |
|---|
public XMLImporter(Project p)
throws java.lang.Exception
p - the project whose model should be imported
java.lang.Exception - if something goes wrong during parsing of document| Method Detail |
|---|
public void doImport()
public void importModel()
public int getTotalNumberOfCases()
public void importCases()
public boolean isImporting()
public int getCurrentNumberOfCases()
public static void copyInputStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - input stream of file to be copiedout - the output stream of the file to be written
java.io.IOException - if something goes wrong when reading/writingpublic Project getProject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||