|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiitb.con.net.ConStore
public class ConStore
ConStore provides the high level system operations such as create, open, and deletion of ConceptNet.
ConceptNet
Constructor Summary | |
---|---|
ConStore()
|
Method Summary | |
---|---|
static ConceptNet |
create(java.lang.String name)
Creates new concept-net and opens in the specified mode. The opening mode can read (r) or read-write (rw). |
static boolean |
delete(java.lang.String conceptNetDir)
Deletes the existing concept-net. |
static boolean |
isExists(java.lang.String name)
Returns true if concept-net of specified name exists |
static ConceptNet |
open(java.lang.String name,
java.lang.String mode)
Opens the existing concept-net in the specified mode. The opening mode can read (r) or read-write (rw). If Concept-Net does not exists then it throws exception. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConStore()
Method Detail |
---|
public static ConceptNet create(java.lang.String name) throws java.io.IOException
name
- concept-net name
java.io.IOException
- if the file operations fails.public static boolean delete(java.lang.String conceptNetDir)
conceptNetDir
- Concept-Net Directory
true
on successpublic static boolean isExists(java.lang.String name)
name
- concept-net name
public static ConceptNet open(java.lang.String name, java.lang.String mode) throws java.io.FileNotFoundException, java.io.IOException
name
- concept-net namemode
- opening mode
java.io.FileNotFoundException
- if the specified concept-net file is not found
java.io.IOException
- if file operation fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |