/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte * the byte to be written. */ @Override public synchronized void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer * the buffer to be written. * @param offset * the initial position in {@code buffer} to retrieve bytes. * @param len * the number of bytes of {@code buffer} to write. * @throws NullPointerException * if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException * if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override public synchronized void write(byte[] buffer, int offset, int len) { Arrays.checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }
/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte * the byte to be written. */ @Override public synchronized void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte * the byte to be written. */ @Override public synchronized void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte * the byte to be written. */ @Override public synchronized void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte the byte to be written. */ @Override public void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte * the byte to be written. */ @Override public synchronized void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte * the byte to be written. */ @Override public synchronized void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte * the byte to be written. */ @Override public synchronized void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes the specified byte {@code oneByte} to the OutputStream. Only the * low order byte of {@code oneByte} is written. * * @param oneByte the byte to be written. */ @Override @JTranscSync public void write(int oneByte) { if (count == buf.length) { expand(1); } buf[count++] = (byte) oneByte; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer the buffer to be written. * @param offset the initial position in {@code buffer} to retrieve bytes. * @param len the number of bytes of {@code buffer} to write. * @throws NullPointerException if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override public void write(byte[] buffer, int offset, int len) { checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer * the buffer to be written. * @param offset * the initial position in {@code buffer} to retrieve bytes. * @param len * the number of bytes of {@code buffer} to write. * @throws NullPointerException * if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException * if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override public synchronized void write(byte[] buffer, int offset, int len) { Arrays.checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer * the buffer to be written. * @param offset * the initial position in {@code buffer} to retrieve bytes. * @param len * the number of bytes of {@code buffer} to write. * @throws NullPointerException * if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException * if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override public synchronized void write(byte[] buffer, int offset, int len) { Arrays.checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer * the buffer to be written. * @param offset * the initial position in {@code buffer} to retrieve bytes. * @param len * the number of bytes of {@code buffer} to write. * @throws NullPointerException * if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException * if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override public synchronized void write(byte[] buffer, int offset, int len) { Arrays.checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer * the buffer to be written. * @param offset * the initial position in {@code buffer} to retrieve bytes. * @param len * the number of bytes of {@code buffer} to write. * @throws NullPointerException * if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException * if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override public synchronized void write(byte[] buffer, int offset, int len) { Arrays.checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer * the buffer to be written. * @param offset * the initial position in {@code buffer} to retrieve bytes. * @param len * the number of bytes of {@code buffer} to write. * @throws NullPointerException * if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException * if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override public synchronized void write(byte[] buffer, int offset, int len) { Arrays.checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer * the buffer to be written. * @param offset * the initial position in {@code buffer} to retrieve bytes. * @param len * the number of bytes of {@code buffer} to write. * @throws NullPointerException * if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException * if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override public synchronized void write(byte[] buffer, int offset, int len) { Arrays.checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to this stream. * * @param buffer the buffer to be written. * @param offset the initial position in {@code buffer} to retrieve bytes. * @param len the number of bytes of {@code buffer} to write. * @throws NullPointerException if {@code buffer} is {@code null}. * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code len < 0}, or if * {@code offset + len} is greater than the length of * {@code buffer}. */ @Override @JTranscSync public void write(byte[] buffer, int offset, int len) { JTranscArrays.checkOffsetAndCount(buffer.length, offset, len); if (len == 0) { return; } expand(len); System.arraycopy(buffer, offset, buf, this.count, len); this.count += len; }