@ Override public void write ( @ Nonnull final String sStr , @ Nonnegative final int nOfs , @ Nonnegative final int nLen ) { if ( nLen > 0 ) { final int newcount = m_nCount + nLen ; if ( newcount > m_aBuf . length ) { m_aBuf = Arrays . copyOf ( m_aBuf , Math . max ( m_aBuf . length << 1 , newcount ) ) ; } sStr . getChars ( nOfs , nOfs + nLen , m_aBuf , m_nCount ) ; m_nCount = newcount ; } }
Write a portion of a string to the buffer .