|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.database.XmlDBFileAccessor
The XmlDBFileAccessor
represents a sequential accessor
to the elements in the primitive database. It keeps the current
position in the database.
Field Summary | |
protected int |
index_file
The index in the file list. |
protected int |
index_record
The index in the current XML document. |
protected PrimitiveFileManager |
manager
The primitive database manager. |
protected java.io.File[] |
xml_files
The list of XML files. |
protected XmlDBRecord[] |
xml_records
The records in the current XML document. |
Constructor Summary | |
XmlDBFileAccessor(PrimitiveFileManager manager)
Constructs a XmlDBFileAccessor of the specified
database. |
Method Summary | |
java.io.File |
getCurrentFile()
Gets the file which contains the current element. |
XmlDBRecord |
getFirstElement()
Gets the first element in the database. |
java.io.File |
getNewFile()
Gets the new file. |
XmlDBRecord |
getNextElement()
Gets the next element in the database. |
java.io.File |
getVacantFile()
Gets the file which has room to add the XML element. |
void |
initialize()
Initializes. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected PrimitiveFileManager manager
protected java.io.File[] xml_files
protected int index_file
protected XmlDBRecord[] xml_records
protected int index_record
Constructor Detail |
public XmlDBFileAccessor(PrimitiveFileManager manager)
XmlDBFileAccessor
of the specified
database.manager
- the primitive database manager.Method Detail |
public void initialize()
public java.io.File getVacantFile() throws java.io.IOException
public java.io.File getNewFile() throws java.io.IOException
public java.io.File getCurrentFile()
public XmlDBRecord getFirstElement() throws java.io.IOException
public XmlDBRecord getNextElement() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |