public class ChangeSetComponent extends AbstractMessageComponent
Constructor and Description |
---|
ChangeSetComponent(java.lang.String name)
Construct a ChangeSetComponent with no content.
|
ChangeSetComponent(java.lang.String name,
ChangeSet changes)
Construct a ChangeSetComponent with a specific set of changes.
|
Modifier and Type | Method and Description |
---|---|
ChangeSet |
getChangeSet()
Get the ChangeSet.
|
void |
read(java.io.InputStream in)
Read this component from a stream.
|
void |
setChangeSet(ChangeSet newChanges)
Set the ChangeSet.
|
java.lang.String |
toString() |
void |
write(java.io.OutputStream out)
Write this component to a stream.
|
getName
public ChangeSetComponent(java.lang.String name)
name
- The name of the component.public ChangeSetComponent(java.lang.String name, ChangeSet changes)
name
- The name of the component.changes
- The changes in this message component.public ChangeSet getChangeSet()
public void setChangeSet(ChangeSet newChanges)
newChanges
- The new ChangeSet.public void write(java.io.OutputStream out) throws java.io.IOException
MessageComponent
out
- The stream to write to.java.io.IOException
- If the write fails.public void read(java.io.InputStream in) throws java.io.IOException
MessageComponent
in
- The stream to read from.java.io.IOException
- If the read fails.public java.lang.String toString()
toString
in class java.lang.Object