public class DocumentStreamAdapter extends AbstractDescriptorIo implements MergeProcessor
| Constructor and Description |
|---|
DocumentStreamAdapter(MergeProcessor next)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMergeItem(Object mergeItem)
Add an item to be merged.
|
protected Document |
getDocument(InputStream theInput)
Parse the input stream into a document.
|
Object |
performMerge()
Perform the merge.
|
createDocumentBuilder, writeAll, writeDescriptor, writeDescriptor, writeDescriptor, writeDescriptorpublic DocumentStreamAdapter(MergeProcessor next)
next - the processor to adaptpublic void addMergeItem(Object mergeItem) throws MergeException
addMergeItem in interface MergeProcessormergeItem - in the item to merge.MergeException - on exceptionsMergeProcessor.addMergeItem(java.lang.Object)public Object performMerge() throws MergeException
performMerge in interface MergeProcessorMergeException - if there is a problemMergeProcessor.performMerge()protected Document getDocument(InputStream theInput) throws ParserConfigurationException, SAXException, IOException
theInput - in the InputStream to readParserConfigurationException - on parse exceptionSAXException - on sax exceptionIOException - on IO exceptionCopyright © 2004-2013 Codehaus. All Rights Reserved.