public class DomainExporter
extends java.lang.Object
| Constructor and Description |
|---|
DomainExporter(org.opendof.core.domain.DomainManager manager,
java.lang.String filename)
Create a new DomainExporter with a target file.
|
DomainExporter(org.opendof.core.domain.DomainManager manager,
java.io.Writer writer)
Create a new DomainExporter with a target Writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DomainWriter.NodeWrittenListener listener)
Add a new listener.
|
void |
export(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Export the given nodeID.
|
void |
export(java.lang.Iterable<org.opendof.core.oal.DOFObjectID.Authentication> nodeIDs)
Export the given nodeIDs.
|
void |
exportAll()
Export all nodes in the domain.
|
public DomainExporter(org.opendof.core.domain.DomainManager manager,
java.lang.String filename)
throws java.io.IOException
manager - The manager to read from.filename - The file to write to.java.io.IOExceptionpublic DomainExporter(org.opendof.core.domain.DomainManager manager,
java.io.Writer writer)
throws java.io.IOException
manager - The manager to read from.writer - The Writer to write to.java.io.IOExceptionpublic void addListener(DomainWriter.NodeWrittenListener listener)
listener - The listener to add.public void exportAll()
throws java.lang.Exception
java.lang.Exceptionpublic void export(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws java.lang.Exception
nodeID - java.lang.Exceptionpublic void export(java.lang.Iterable<org.opendof.core.oal.DOFObjectID.Authentication> nodeIDs)
throws java.lang.Exception
nodeIDs - The list of nodeIDs.java.lang.Exception