|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.ipf.InstrumentProfileReader
public class InstrumentProfileReader
Reads instrument profiles from the stream using Simple File Format. Please see Instrument Profile Format documentation for complete description.
This reader automatically uses data formats as specified in the stream.
Nested Class Summary | |
---|---|
protected static class |
InstrumentProfileReader.UncloseableInputStream
Delegating InputStream that does not close underlying stream. |
Constructor Summary | |
---|---|
InstrumentProfileReader()
|
Method Summary | |
---|---|
long |
getLastModified()
Returns last modification time (in milliseconds) from last readFromFile(java.lang.String) operation
or zero if it is unknown. |
List<InstrumentProfile> |
read(InputStream in)
Reads and returns instrument profiles from specified stream. |
List<InstrumentProfile> |
read(InputStream in,
String name)
Reads and returns instrument profiles from specified stream using specified name to select data compression format. |
List<InstrumentProfile> |
readFromFile(String address)
Reads and returns instrument profiles from specified file. |
static String |
resolveSourceURL(String address)
Converts a specified string address specification into an URL that will be read by readFromFile(java.lang.String) method using URLInputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstrumentProfileReader()
Method Detail |
---|
public long getLastModified()
readFromFile(java.lang.String)
operation
or zero if it is unknown.
public List<InstrumentProfile> readFromFile(String address) throws IOException
This operation updates lastModified
.
address
- URL of file to read from
InstrumentProfileFormatException
- if input stream does not conform to the Simple File Format
IOException
- If an I/O error occurspublic static String resolveSourceURL(String address)
readFromFile(java.lang.String)
method using URLInputStream
.
public List<InstrumentProfile> read(InputStream in, String name) throws IOException
InstrumentProfileFormatException
- if input stream does not conform to the Simple File Format
IOException
- If an I/O error occurspublic List<InstrumentProfile> read(InputStream in) throws IOException
InstrumentProfileFormatException
- if input stream does not conform to the Simple File Format
IOException
- If an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |