|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.ipf.transform.InstrumentProfileTransform
public class InstrumentProfileTransform
Reads, compiles and executes instrument profile transform programs. Please see Instrument Profile Format documentation for complete description.
The correct way to use InstrumentProfileTransform is as follows:
// Create new instance and read some transform: InstrumentProfileTransform transform = new InstrumentProfileTransform(); transform.readFromFile(file); // Execute transform and optionally print statistics as many times as needed: profiles = transform.transform(profiles); for (String s : transform.getStatistics()) System.out.println(s);
Constructor Summary | |
---|---|
InstrumentProfileTransform()
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getStatistics()
Returns execution statistics of the transform. |
void |
read(java.io.InputStream in)
Reads transform from specified stream. |
void |
readFromFile(java.lang.String file)
Reads transform from specified file. |
java.util.List<InstrumentProfile> |
transform(java.util.List<InstrumentProfile> profiles)
Executes compiled transform on specified instrument profiles and returns transformed profiles. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstrumentProfileTransform()
Method Detail |
---|
public void readFromFile(java.lang.String file) throws java.io.IOException, TransformCompilationException
TransformCompilationException
- if input stream does not conform to the transform syntax
java.io.IOException
- If an I/O error occurspublic void read(java.io.InputStream in) throws java.io.IOException, TransformCompilationException
TransformCompilationException
- if input stream does not conform to the transform syntax
java.io.IOException
- If an I/O error occurspublic java.util.List<InstrumentProfile> transform(java.util.List<InstrumentProfile> profiles)
public java.util.List<java.lang.String> getStatistics()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |