com.taleo.integration.client.customstep.xml
Class StripInvalidXMLCharsStep
java.lang.Object
com.taleo.integration.client.step.BaseStep
com.taleo.integration.client.step.BaseCustomStep
com.taleo.integration.client.customstep.BaseCustomStep
com.taleo.integration.client.customstep.xml.StripInvalidXMLCharsStep
- All Implemented Interfaces:
- com.taleo.integration.client.step.CustomStep, com.taleo.integration.client.step.Step
public class StripInvalidXMLCharsStep
- extends BaseCustomStep
Processing step (pre or post) to strip invalid XML characters from a file.
The file can be any text file (CSV, XML, ...).
This step takes all parameters from its base class
BaseCustomStep
.
This step can be useful on CSV files that are to be transformed in XML or on
XML files that already contain those invalid characters preventing any XSL
transformation on them.
Valid XML characters are in the following range: #x9 | #xA | #xD |
[#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
(Reference: W3C)
This class is dependent on:
Here is an example of how to define this custom step in the TCC configuration
file:
- Author:
- Romain Guay, Taleo Corporation
Fields inherited from class com.taleo.integration.client.step.BaseCustomStep |
parameters |
Fields inherited from class com.taleo.integration.client.step.BaseStep |
commType, ERROR_NULL_GLOBAL_CONFIG, ERROR_NULL_PIPELINE, ERROR_NULL_STEP_CONFIG, productCode, tempFolder, type, version |
Method Summary |
protected void |
execute(java.io.File inputFile,
java.io.File outputFile)
Process the input file and send result in the output file. |
void |
execute(com.taleo.ws.integration.client.Pipeline pipeline)
|
java.lang.String |
getDescription()
|
java.lang.String |
getIdentifier()
|
java.lang.String |
getName()
|
Methods inherited from class com.taleo.integration.client.step.BaseCustomStep |
getSupportedPipeline, getType, init |
Methods inherited from class com.taleo.integration.client.step.BaseStep |
getAllProcessSupportPipeline, getCurrentFile, getCurrentFile, getCurrentMessage, getPostProcessSupportPipeline, getPreProcessSupportPipeline, isOriginalFile, validateLastStepType, validateMessageType, validatePipeline |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.taleo.integration.client.step.Step |
validatePipeline |
StripInvalidXMLCharsStep
public StripInvalidXMLCharsStep()
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getDescription
in interface com.taleo.integration.client.step.Step
- Specified by:
getDescription
in class com.taleo.integration.client.step.BaseCustomStep
getIdentifier
public java.lang.String getIdentifier()
- Specified by:
getIdentifier
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getIdentifier
in interface com.taleo.integration.client.step.Step
- Specified by:
getIdentifier
in class com.taleo.integration.client.step.BaseCustomStep
getName
public java.lang.String getName()
- Specified by:
getName
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getName
in interface com.taleo.integration.client.step.Step
- Specified by:
getName
in class com.taleo.integration.client.step.BaseCustomStep
execute
public void execute(com.taleo.ws.integration.client.Pipeline pipeline)
throws com.taleo.integration.client.step.StepException
- Throws:
com.taleo.integration.client.step.StepException
execute
protected void execute(java.io.File inputFile,
java.io.File outputFile)
throws java.lang.Exception
- Process the input file and send result in the output file.
- Parameters:
inputFile
- The input file.outputFile
- The output file.
- Throws:
java.lang.Exception