Writes instrument profiles to the stream using Simple File Format. Please see Instrument Profile Format documentation for complete description. This writer automatically derives data formats needed to write all meaningful fields.
More...
|
| InstrumentProfileWriter () |
| Creates instrument profile writer. More...
|
|
void | WriteToFile (string file, IList< InstrumentProfile > profiles) |
| Writes specified instrument profiles into specified file. This method recognizes popular data compression formats "zip" and "gzip" by analysing file name. If file name ends with ".zip" then profiles will be written as a single compressed entry in a "zip" format. If file name ends with ".gz" then profiles will be compressed and written using "gzip" format. In other cases file will be considered uncompressed and profiles will be written as is. More...
|
|
void | Write (Stream outStream, string name, IList< InstrumentProfile > profiles) |
| Writes specified instrument profiles into specified stream using specified name to select data compression format. This method recognizes popular data compression formats "zip" and "gzip" by analysing file name. If file name ends with ".zip" then profiles will be written as a single compressed entry in a "zip" format. If file name ends with ".gz" then profiles will be compressed and written using "gzip" format. In other cases file will be considered uncompressed and profiles will be written as is. More...
|
|
void | Write (Stream outStream, IList< InstrumentProfile > profiles) |
| Writes specified instrument profiles into specified stream. More...
|
|
Writes instrument profiles to the stream using Simple File Format. Please see Instrument Profile Format documentation for complete description. This writer automatically derives data formats needed to write all meaningful fields.
◆ InstrumentProfileWriter()
com.dxfeed.ipf.InstrumentProfileWriter.InstrumentProfileWriter |
( |
| ) |
|
|
inline |
Creates instrument profile writer.
◆ Write() [1/2]
void com.dxfeed.ipf.InstrumentProfileWriter.Write |
( |
Stream |
outStream, |
|
|
string |
name, |
|
|
IList< InstrumentProfile > |
profiles |
|
) |
| |
|
inline |
Writes specified instrument profiles into specified stream using specified name to select data compression format. This method recognizes popular data compression formats "zip" and "gzip" by analysing file name. If file name ends with ".zip" then profiles will be written as a single compressed entry in a "zip" format. If file name ends with ".gz" then profiles will be compressed and written using "gzip" format. In other cases file will be considered uncompressed and profiles will be written as is.
- Parameters
-
outStream | Where writes profiles. |
name | Name of output entry. |
profiles | Params list which will be written. |
- Exceptions
-
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
System.InvalidOperationException | Can't format certain profile. |
◆ Write() [2/2]
void com.dxfeed.ipf.InstrumentProfileWriter.Write |
( |
Stream |
outStream, |
|
|
IList< InstrumentProfile > |
profiles |
|
) |
| |
|
inline |
Writes specified instrument profiles into specified stream.
- Parameters
-
outStream | Where writes profiles. |
profiles | Params list which will be written. |
- Exceptions
-
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
System.InvalidOperationException | Can't format certain profile. |
◆ WriteToFile()
void com.dxfeed.ipf.InstrumentProfileWriter.WriteToFile |
( |
string |
file, |
|
|
IList< InstrumentProfile > |
profiles |
|
) |
| |
|
inline |
Writes specified instrument profiles into specified file. This method recognizes popular data compression formats "zip" and "gzip" by analysing file name. If file name ends with ".zip" then profiles will be written as a single compressed entry in a "zip" format. If file name ends with ".gz" then profiles will be compressed and written using "gzip" format. In other cases file will be considered uncompressed and profiles will be written as is.
- Parameters
-
file | Path to output file. |
profiles | Params list which will be written. |
- Exceptions
-
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
System.InvalidOperationException | Can't format certain profile. |
◆ FILE_EXTENSION
const string com.dxfeed.ipf.InstrumentProfileWriter.FILE_EXTENSION = ".ipf" |
|
private |
The documentation for this class was generated from the following file: