/// <summary> Adds a base64 encoded value to the attribute. /// The value will be decoded and stored as bytes. Character /// data encoded as a base64 value must be UTF-8 characters. /// /// </summary> /// <param name="attrString">The base64 value of the attribute as a StringBuffer. /// </param> /// <param name="start"> The start index of base64 encoded part, inclusive. /// </param> /// <param name="end"> The end index of base encoded part, exclusive. /// /// @throws IllegalArgumentException if attrString is null /// </param> public virtual void addBase64Value(StringBuilder attrString, int start, int end) { if (attrString == null) { throw new ArgumentException("Attribute value cannot be null"); } this.add(Base64.decode(attrString, start, end)); }
/// <summary> Adds a base64 encoded value to the attribute. /// The value will be decoded and stored as bytes. Character /// data encoded as a base64 value must be UTF-8 characters. /// /// </summary> /// <param name="attrChars">The base64 value of the attribute as an array of /// characters. /// /// @throws IllegalArgumentException if attrString is null /// </param> public virtual void addBase64Value(char[] attrChars) { if (attrChars == null) { throw new ArgumentException("Attribute value cannot be null"); } this.add(Base64.decode(attrChars)); }
/// <summary> Adds a base64 encoded value to the attribute. /// The value will be decoded and stored as bytes. String /// data encoded as a base64 value must be UTF-8 characters. /// /// </summary> /// <param name="attrString">The base64 value of the attribute as a String. /// /// @throws IllegalArgumentException if attrString is null /// </param> public virtual void addBase64Value(string attrString) { if (attrString == null) { throw new ArgumentException("Attribute value cannot be null"); } this.add(Base64.decode(attrString)); }
/// <summary> Adds a base64 encoded value to the attribute. /// The value will be decoded and stored as bytes. String /// data encoded as a base64 value must be UTF-8 characters. /// /// </summary> /// <param name="attrString">The base64 value of the attribute as a String. /// /// @throws IllegalArgumentException if attrString is null /// </param> public virtual void addBase64Value(System.String attrString) { if ((System.Object)attrString == null) { throw new System.ArgumentException("Attribute value cannot be null"); } this.add(Base64.decode(attrString)); return; }