예제 #1
0
        public MAPWriter(Stream stream, MAPFormat format)
        {
            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }

            Format = format;

            if (Format == MAPFormat.ABSE)
            {
                GetCellValue = GetABSEBodyCellValue;
            }
            else
            {
                GetCellValue = GetABTABodyCellValue;
            }

            //Don't call Dispode of this Writer for stream to stay opened
            _binWriter = new BigEndianBinaryWriter(stream);
        }
예제 #2
0
 public MAPReader(MapBuilder builder, MAPFormat format)
 {
     MapBuilder = builder;
     Format     = format;
 }