equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
70 * |
70 * |
71 * @param cbuf Buffer of characters to be written |
71 * @param cbuf Buffer of characters to be written |
72 * @param off Offset from which to start reading characters |
72 * @param off Offset from which to start reading characters |
73 * @param len Number of characters to be written |
73 * @param len Number of characters to be written |
74 * |
74 * |
75 * @exception IOException If an I/O error occurs |
75 * @throws IndexOutOfBoundsException |
|
76 * If the values of the {@code off} and {@code len} parameters |
|
77 * cause the corresponding method of the underlying {@code Writer} |
|
78 * to throw an {@code IndexOutOfBoundsException} |
|
79 * |
|
80 * @throws IOException If an I/O error occurs |
76 */ |
81 */ |
77 public void write(char cbuf[], int off, int len) throws IOException { |
82 public void write(char cbuf[], int off, int len) throws IOException { |
78 out.write(cbuf, off, len); |
83 out.write(cbuf, off, len); |
79 } |
84 } |
80 |
85 |
83 * |
88 * |
84 * @param str String to be written |
89 * @param str String to be written |
85 * @param off Offset from which to start reading characters |
90 * @param off Offset from which to start reading characters |
86 * @param len Number of characters to be written |
91 * @param len Number of characters to be written |
87 * |
92 * |
88 * @exception IOException If an I/O error occurs |
93 * @throws IndexOutOfBoundsException |
|
94 * If the values of the {@code off} and {@code len} parameters |
|
95 * cause the corresponding method of the underlying {@code Writer} |
|
96 * to throw an {@code IndexOutOfBoundsException} |
|
97 * |
|
98 * @throws IOException If an I/O error occurs |
89 */ |
99 */ |
90 public void write(String str, int off, int len) throws IOException { |
100 public void write(String str, int off, int len) throws IOException { |
91 out.write(str, off, len); |
101 out.write(str, off, len); |
92 } |
102 } |
93 |
103 |