public void write(String str, int offset, int count) {if (str == null) {throw new NullPointerException("str == null");}if ((offset | count) < 0 || offset > str.length() - count) {throw new StringIndexOutOfBoundsException(str, offset, count);}synchronized (lock) {expand(count);str.getChars(offset, offset + count, buf, this.count);this.count += count;}}

public void write ( String str , int offset , int count ) { if ( str == null ) { throw new NullPointerException ( "str == null" ) ; } if ( ( offset | count ) < 0 || offset > str . length ( ) - count ) { throw new StringIndexOutOfBoundsException ( str , offset , count ) ; } synchronized ( lock ) { expand ( count ) ; str . getChars ( offset , offset + count , buf , this . count ) ; this . count += count ; } }
public override void write(string str, int offset, int count){if (str == null){throw new System.ArgumentNullException("str == null");}if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}lock (@lock){expand(count);Sharpen.StringHelper.GetCharsForString(str, offset, offset + count, buf, this.count);this.count += count;}}
