Lines Matching defs:buffer
70 * Writes the entire contents of the byte array {@code buffer} to this
73 * @param buffer
74 * the buffer to be written.
78 public void write(byte[] buffer) throws IOException {
82 write(buffer, 0, buffer.length);
86 * Writes {@code count} bytes from the byte array {@code buffer} starting at
89 * @param buffer
90 * the buffer to be written.
92 * the start position in {@code buffer} from where to get bytes.
94 * the number of bytes from {@code buffer} to write to this
101 * {@code buffer}.
103 public void write(byte[] buffer, int offset, int count) throws IOException {
107 // avoid int overflow, check null buffer
114 if (buffer == null) {
117 if ((offset | count) < 0 || count > buffer.length - offset) {
122 write(buffer[i]);