예제 #1
0
        protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer)
        {
            driverIdentification = reader.ReadString(14);
            replacementIndex     = reader.ReadByte();
            renewalIndex         = reader.ReadByte();

            writer.WriteAttributeString("ReplacementIndex", replacementIndex.ToString());
            writer.WriteAttributeString("RenewalIndex", renewalIndex.ToString());

            writer.WriteString(driverIdentification);
        }
예제 #2
0
        protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer)
        {
            type = (EquipmentType)reader.ReadByte();
            issuingMemberState   = reader.ReadByte();
            driverIdentification = reader.ReadString(14);
            replacementIndex     = reader.ReadByte();
            renewalIndex         = reader.ReadByte();

            writer.WriteAttributeString("Type", type.ToString());
            writer.WriteAttributeString("IssuingMemberState", issuingMemberState.ToString());
            writer.WriteAttributeString("ReplacementIndex", replacementIndex.ToString());
            writer.WriteAttributeString("RenewalIndex", renewalIndex.ToString());

            writer.WriteString(driverIdentification);
        }
예제 #3
0
 // method that will read string from file in specified encoding
 protected void ProcessInternal(CustomBinaryReader s, Encoding enc)
 {
     text = s.ReadString(Length, enc).Trim();
 }
예제 #4
0
 // method that will read string from file in specified encoding
 protected void ProcessInternal(CustomBinaryReader s, Encoding enc)
 {
     text=s.ReadString(Length, enc).Trim();
 }
예제 #5
0
        protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer)
        {
            type=(EquipmentType) reader.ReadByte();
            issuingMemberState=reader.ReadByte();
            driverIdentification=reader.ReadString(14);
            replacementIndex=reader.ReadByte();
            renewalIndex=reader.ReadByte();

            writer.WriteAttributeString("Type", type.ToString());
            writer.WriteAttributeString("IssuingMemberState", issuingMemberState.ToString());
            writer.WriteAttributeString("ReplacementIndex", replacementIndex.ToString());
            writer.WriteAttributeString("RenewalIndex", renewalIndex.ToString());

            writer.WriteString(driverIdentification);
        }
예제 #6
0
 protected override void ProcessInternal(CustomBinaryReader reader)
 {
     driverIdentification = reader.ReadString(14);
     replacementIndex     = reader.ReadByte();
     renewalIndex         = reader.ReadByte();
 }