@ComponentProfile(summary="Remove a UTF-8 BOM", tag="service") public class Utf8BomRemover extends ServiceImp
This is only really useful when Windows (.NET application or otherwise) generated files are being processed by the adapter. In almost all situations, windows will output a redundant UTF-8 BOM which may cause issues with certain types of XML processing. In the event that no BOM is detected, then nothing is done to the message.
This is a workaround for This Sun JVM bug.
In the adapter configuration file this class is aliased as utf8-bom-remover which is the preferred alternative to the fully qualified classname when building your configuration.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
Utf8BomRemover() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
void |
doService(AdaptrisMessage msg)
Apply the service to the message.
|
protected void |
initService() |
void |
prepare()
Prepare for initialisation.
|
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
public void doService(AdaptrisMessage msg) throws ServiceException
Service
Apply the service to the message.
msg
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
sprotected void initService()
initService
in class ServiceImp
protected void closeService()
closeService
in class ServiceImp
public void prepare() throws CoreException
ComponentLifecycleExtension
CoreException