/** Set the sideFragment sequence (this will have been stored in the text attribute by the setText method). * Then transforms the input string into an array of bytes */ public void completeElementContent() { numBytes = 0; string theElementValue = this.GetText(); //.getText(); this.mySequenceFragment = theElementValue; myByteSpecifierSequence = new List<ByteSequenceSpecifier>(); //ArrayList(); //StringBuffer allSpecifiers = new StringBuffer(theElementValue); StringBuilder allSpecifiers = new StringBuilder(theElementValue); while (allSpecifiers.Length > 0) { try { ByteSequenceSpecifier bss = new ByteSequenceSpecifier(allSpecifiers); myByteSpecifierSequence.Add(bss); numBytes += bss.getNumBytes(); } catch (Exception) { } } }
/** Set the sideFragment sequence (this will have been stored in the text attribute by the setText method). * Then transforms the input string into an array of bytes */ public void completeElementContent() { numBytes = 0; string theElementValue = this.GetText(); //.getText(); this.mySequenceFragment = theElementValue; myByteSpecifierSequence = new List <ByteSequenceSpecifier>(); //ArrayList(); //StringBuffer allSpecifiers = new StringBuffer(theElementValue); StringBuilder allSpecifiers = new StringBuilder(theElementValue); while (allSpecifiers.Length > 0) { try { ByteSequenceSpecifier bss = new ByteSequenceSpecifier(allSpecifiers); myByteSpecifierSequence.Add(bss); numBytes += bss.getNumBytes(); } catch (Exception) { } } }