C
- The type of components to assemblepublic interface Assembler<C>
Modifier and Type | Method and Description |
---|---|
void |
add(C component)
Add a component to the assembly.
|
void |
end()
Finish the assembly process.
|
Metrics |
getMetrics()
Return metrics about the assembly process.
|
void |
start(DataBuffer product)
Start the assembly process.
|
void start(DataBuffer product) throws java.io.IOException
product
- Storage for the assembled productjava.io.IOException
- When an I/O error occursvoid add(C component) throws java.io.IOException
component
- The component to addjava.io.IOException
- When an I/O error occursvoid end() throws java.io.IOException
java.io.IOException
- When an I/O error occursMetrics getMetrics()
null
if no metrics are provided