Writer.write

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

  1. void write(int c)
  2. void write(byte[] cbuf)
  3. void write(byte[] cbuf, int off, int len)
  4. void write(string str)
  5. void write(string str, int off, int len)
    class Writer
    void
    write
    (
    string str
    ,
    int off
    ,
    int len
    )

Meta