public class DocumentsFastWriter extends Object
| Constructor and Description |
|---|
DocumentsFastWriter(String location)
Constructor for the DocumentsFastWriter.
|
| Modifier and Type | Method and Description |
|---|---|
long |
addElement(DocumentData obj)
Appends a new object to the structure.
|
void |
close()
Close the two files opened in the constructor.
|
void |
save(DocumentData doc) |
public DocumentsFastWriter(String location) throws IOException
location - the directory to write toIOException - Description of the Exceptionpublic void save(DocumentData doc) throws IOException
doc - IOExceptionpublic long addElement(DocumentData obj) throws IOException
Saveable.obj - the element to addIOExceptionpublic void close()
Copyright © 2016 Egothor. All Rights Reserved.