D
- The type of domain objects to assemble the PDI frompublic abstract class PdiAssembler<D> extends PrintWriterAssembler<HashedContents<D>>
Constructor and Description |
---|
PdiAssembler(Validator validator)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
add(D domainObject,
java.util.Map<java.lang.String,ContentInfo> contentInfo,
java.io.PrintWriter writer)
Add a domain object.
|
protected void |
add(HashedContents<D> hashedContents,
java.io.PrintWriter writer)
Add a domain object.
|
add, end, end, getMetrics, start, start
public PdiAssembler(Validator validator)
validator
- Optional validator for checking whether the PDI meets expectationsprotected final void add(HashedContents<D> hashedContents, java.io.PrintWriter writer) throws java.io.IOException
PrintWriterAssembler
add
in class PrintWriterAssembler<HashedContents<D>>
hashedContents
- The domain object to addwriter
- Where to write outputjava.io.IOException
- When an I/O error occuresprotected abstract void add(D domainObject, java.util.Map<java.lang.String,ContentInfo> contentInfo, java.io.PrintWriter writer) throws java.io.IOException
domainObject
- The domain object to addcontentInfo
- The reference information and the encoded hashes of the content associated with the domain
objectwriter
- The writer to print the PDI fragment tojava.io.IOException
- When an I/O error occures