|
Oracle Fusion Middleware Java API Reference for Oracle Business Intelligence Publisher 11g Release 1 (11.1.1) E22256-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.xdo.template.EFTProcessor
public final class EFTProcessor
The class EFTProcessor class is the front-end class to use EFT Processing engine. To use EFTProcessor class, users have to instanciate this class and set parameters such as input, intermediate xsl, final output and control parameters.
After setting the parameters, you can start processing by calling process() method.
Typical usage is following:
EFTProcessor processor = new EFTProcessor();
processor.setData(xmlInput);
processor.setTemplate(template);
processor.setXSL(xslInput);
processor.setDebugMode(debug); processor.setSequence(sequenceName, sequenceValue);
Stream data are also allowed to be set.
EFTProcessor processor = new EFTProcessor();
processor.setData(xmlInputStream);
processor.setTemplate(templateStream);
processor.setXSL(xslInputStream);
processor.setDebugMode(debug); processor.setSequence(sequenceName, sequenceValue);
Constructor Summary | |
---|---|
EFTProcessor() Constructor |
|
EFTProcessor(java.io.InputStream is) Constructor |
|
EFTProcessor(java.lang.String path) |
Method Summary | |
---|---|
java.util.Vector |
getPeriodicSequenceNames() Returns a list of periodic sequence number's name defined by user in the template |
java.util.Hashtable |
getPeriodicSequenceNumbers() |
static void |
main(java.lang.String[] args) Command line utility. |
void |
process() Run the EFT compiler to convert RTF to XSL. |
void |
setConfig(java.io.InputStream docLevelInputStream) Sets the configuration for the document to be processed. |
void |
setConfig(java.util.Properties prop) Sets the configuration for the document to be processed. |
void |
setConfig(java.lang.String docLevelConfigPath) Sets the configuration for the document to be processed. |
void |
setData(java.io.InputStream stream) Sets XML Data Input Stream. |
void |
setData(java.io.Reader reader) Sets XML Data Reader. |
void |
setData(java.lang.String xmlFile) Sets Input XML File. |
void |
setOutput(java.io.OutputStream os) Sets output stream. |
void |
setOutput(java.lang.String path) Sets output file path. |
void |
setTemplate(java.io.InputStream stream) Sets Input Stream for Template data. |
void |
setTemplate(java.io.Reader reader) Sets Reader for XSL data. |
void |
setTemplate(java.lang.String mFile) Sets Input Template File. |
void |
setXSL(java.io.InputStream xslInputStream) |
void |
setXSL(java.lang.String xslFile) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EFTProcessor()
path
- EFT source file's pathjava.io.IOException
- if file cannot be createdpublic EFTProcessor(java.lang.String path) throws java.io.IOException
java.io.IOException
public EFTProcessor(java.io.InputStream is)
in
- EFT input streamMethod Detail |
---|
public void setTemplate(java.lang.String mFile)
xslFile
- xsl input file pathpublic void setTemplate(java.io.InputStream stream)
stream
- input stream for xsl inputpublic void setTemplate(java.io.Reader reader)
reader
- reader for xsl inputpublic void setData(java.lang.String xmlFile)
xmlFile
- xml input file pathpublic void setData(java.io.InputStream stream)
stream
- input stream for xml inputpublic void setData(java.io.Reader reader)
reader
- Reader for xml inputpublic void setXSL(java.lang.String xslFile)
public void setXSL(java.io.InputStream xslInputStream) throws java.lang.Exception
java.lang.Exception
public void setOutput(java.lang.String path) throws java.io.IOException
outFile
- output file pathjava.io.IOException
public void setOutput(java.io.OutputStream os)
stream
- output stream namepublic void process() throws XDOException
org.w3c.dom.Document
object representing the XSL, returns null if processed unsuccessfully. If the OutputStream is set, then it also writes the xsl to the OutputStreamoracle.xdo.XDOException
XDOException
public final java.util.Hashtable getPeriodicSequenceNumbers()
public void setConfig(java.util.Properties prop)
prop
- Properties for the document level configurationpublic void setConfig(java.io.InputStream docLevelInputStream)
configStream
- InputStream for the document level configurationpublic void setConfig(java.lang.String docLevelConfigPath)
configFilePath
- file path for the document level configurationpublic java.util.Vector getPeriodicSequenceNames()
If the template is parsed, the method returns null
If parsed template doesn't have any user defined periodic sequence number, this method returns empty list
java.util.Vector
public static void main(java.lang.String[] args)
args
- parameters for this processororacle.xdo.XDOException
- raise XDOException if exception happens
|
Oracle Fusion Middleware Java API Reference for Oracle Business Intelligence Publisher 11g Release 1 (11.1.1) E22256-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |