public class DomainWriter
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static interface |
DomainWriter.NodeWrittenListener
Listener that is notified when a node has been written.
|
| Constructor and Description |
|---|
DomainWriter(java.io.Writer writer)
Create a new DomainWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DomainWriter.NodeWrittenListener listener)
Add a new listener.
|
void |
begin()
Begin writing a set of nodes.
|
void |
close() |
void |
end()
End the node set without closing the writer.
|
void |
write(org.opendof.core.domain.ManagementAuthenticationNode node)
Write the given node.
|
void |
write(org.opendof.core.domain.ManagementRemoteDomainNode node)
Write the given node.
|
void |
write(org.opendof.core.domain.ManagementSecureGroupNode node)
Write the given node.
|
public DomainWriter(java.io.Writer writer)
throws java.io.IOException
writer - The Writer to use.java.io.IOExceptionpublic void addListener(DomainWriter.NodeWrittenListener listener)
listener - public void begin()
throws java.io.IOException
java.io.IOExceptionpublic void end()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void write(org.opendof.core.domain.ManagementAuthenticationNode node)
throws java.lang.Exception
node - The node to write.java.lang.Exceptionpublic void write(org.opendof.core.domain.ManagementSecureGroupNode node)
throws java.lang.Exception
node - The node to write.java.lang.Exceptionpublic void write(org.opendof.core.domain.ManagementRemoteDomainNode node)
throws java.lang.Exception
node - The node to write.java.lang.Exception