toolbox.allegato
Interface XMLPreProcessor

Package class diagram package XMLPreProcessor
All Known Implementing Classes:
PropertyPreProcessor

public interface XMLPreProcessor

Interface that defines a mechanism for hooking a pre-processor into the XMLProperties object.

The processor can manipulate the stream before it is parsed by the XMLProperties object. This can be useful to process substitution variables in XML configuration documents.


Method Summary
 java.io.InputStream process(java.io.InputStream is)
          Perform required processing on the given InputStream and return an IntputStream suitable for parsing by an XMLProperties instance.
 

Method Detail

process

java.io.InputStream process(java.io.InputStream is)
                            throws ConfException
Perform required processing on the given InputStream and return an IntputStream suitable for parsing by an XMLProperties instance.

Parameters:
is - InputStream containing the data to process.
Returns:
InputStream containing modified data.
Throws:
ConfException - if the stream cannot be processed.