@implSpec
The implementation in this class throws an
{@code IndexOutOfBoundsException} for the indicated conditions;
overriding methods may choose to do otherwise.
@param str
A string
@param off
Offset from which to start writing characters
@param len
Number of characters to write
@throws IndexOutOfBoundsException
Implementations should throw this exception
if {@code off} is negative, or {@code len} is negative,
or {@code off + len} is negative or greater than the length
of the given string
Writes a portion of a string.
@implSpec The implementation in this class throws an {@code IndexOutOfBoundsException} for the indicated conditions; overriding methods may choose to do otherwise.
@param str A string
@param off Offset from which to start writing characters
@param len Number of characters to write
@throws IndexOutOfBoundsException Implementations should throw this exception if {@code off} is negative, or {@code len} is negative, or {@code off + len} is negative or greater than the length of the given string
@throws IOException If an I/O error occurs