< prev index next >

src/java.base/share/classes/java/io/OutputStreamWriter.java

Print this page




 190      * @exception  IOException  If an I/O error occurs
 191      */
 192     public void write(int c) throws IOException {
 193         se.write(c);
 194     }
 195 
 196     /**
 197      * Writes a portion of an array of characters.
 198      *
 199      * @param  cbuf  Buffer of characters
 200      * @param  off   Offset from which to start writing characters
 201      * @param  len   Number of characters to write
 202      *
 203      * @throws  IndexOutOfBoundsException
 204      *          If {@code off} is negative, or {@code len} is negative,
 205      *          or {@code off + len} is negative or greater than the length
 206      *          of the given array
 207      *
 208      * @throws  IOException  If an I/O error occurs
 209      */
 210     public void write(char cbuf[], int off, int len) throws IOException {
 211         se.write(cbuf, off, len);
 212     }
 213 
 214     /**
 215      * Writes a portion of a string.
 216      *
 217      * @param  str  A String
 218      * @param  off  Offset from which to start writing characters
 219      * @param  len  Number of characters to write
 220      *
 221      * @throws  IndexOutOfBoundsException
 222      *          If {@code off} is negative, or {@code len} is negative,
 223      *          or {@code off + len} is negative or greater than the length
 224      *          of the given string
 225      *
 226      * @throws  IOException  If an I/O error occurs
 227      */
 228     public void write(String str, int off, int len) throws IOException {
 229         se.write(str, off, len);
 230     }




 190      * @exception  IOException  If an I/O error occurs
 191      */
 192     public void write(int c) throws IOException {
 193         se.write(c);
 194     }
 195 
 196     /**
 197      * Writes a portion of an array of characters.
 198      *
 199      * @param  cbuf  Buffer of characters
 200      * @param  off   Offset from which to start writing characters
 201      * @param  len   Number of characters to write
 202      *
 203      * @throws  IndexOutOfBoundsException
 204      *          If {@code off} is negative, or {@code len} is negative,
 205      *          or {@code off + len} is negative or greater than the length
 206      *          of the given array
 207      *
 208      * @throws  IOException  If an I/O error occurs
 209      */
 210     public void write(char[] cbuf, int off, int len) throws IOException {
 211         se.write(cbuf, off, len);
 212     }
 213 
 214     /**
 215      * Writes a portion of a string.
 216      *
 217      * @param  str  A String
 218      * @param  off  Offset from which to start writing characters
 219      * @param  len  Number of characters to write
 220      *
 221      * @throws  IndexOutOfBoundsException
 222      *          If {@code off} is negative, or {@code len} is negative,
 223      *          or {@code off + len} is negative or greater than the length
 224      *          of the given string
 225      *
 226      * @throws  IOException  If an I/O error occurs
 227      */
 228     public void write(String str, int off, int len) throws IOException {
 229         se.write(str, off, len);
 230     }


< prev index next >