static public method AmmunitionCaliberFactory.ReadStream
Reads the stream as a dictonary
Declaration | ||||
|
Parameters | |
dictionary |
|
stream |
|
encoding |
|
ignoreErrors |
The stream is expected to be a text with the following format
1. One line of the file is one caliber
2. Fields are separated with semicolon (;
)
3. Fields are:
3a. Type: pistol, rifle, shotgun or cannon
3b. Group: a caliber group in inches or millimeters
3c. Bullet diameter in inches or millimeters
3d. The primary name
3e. The optional names separated by a comma
Example:
rifle;4mm;0.172';.17 HMR;.17 Hornady Magnum Rimfire, .17 Hornady Magnum
Declared in AmmunitionCaliberFactory