/** * write a byte on to the stream * * @param b - byte to write * @throws IOException */ public void write(int b) throws IOException { if ((bufferlen - count) < 1) { flush(); } buffer[count++] = (byte)b; }
/** * write a byte array to the stream * * @param b the byte buffer * @param off the offset into the buffer * @param len the length of data to write * @throws IOException */ public void write(byte b[], int off, int len) throws IOException { if (b != null) { if ((bufferlen - count) < len) { flush(); } if (buffer.length >= len) { System.arraycopy(b, off, buffer, count, len); count += len; } else { try { writeTimestamp = System.currentTimeMillis(); out.write(b, off, len); } finally { writeTimestamp = -1; } } } }
/** * write a byte on to the stream * * @param b - byte to write * @throws IOException */ public void write(int b) throws IOException { if ((bufferlen - count) < 1) { flush(); } buffer[count++] = (byte)b; }
/** * write a byte on to the stream * * @param b - byte to write * @throws IOException */ public void write(int b) throws IOException { if ((bufferlen - count) < 1) { flush(); } buffer[count++] = (byte)b; }
/** * write a byte on to the stream * * @param b - byte to write * @throws IOException */ public void write(int b) throws IOException { if ((bufferlen - count) < 1) { flush(); } buffer[count++] = (byte)b; }
/** * write a byte on to the stream * * @param b - byte to write * @throws IOException */ public void write(int b) throws IOException { if ((bufferlen - count) < 1) { flush(); } buffer[count++] = (byte)b; }
/** * write a byte array to the stream * * @param b the byte buffer * @param off the offset into the buffer * @param len the length of data to write * @throws IOException */ public void write(byte b[], int off, int len) throws IOException { if (b != null) { if ((bufferlen - count) < len) { flush(); } if (buffer.length >= len) { System.arraycopy(b, off, buffer, count, len); count += len; } else { try { writeTimestamp = System.currentTimeMillis(); out.write(b, off, len); } finally { writeTimestamp = -1; } } } }
/** * write a byte array to the stream * * @param b the byte buffer * @param off the offset into the buffer * @param len the length of data to write * @throws IOException */ public void write(byte b[], int off, int len) throws IOException { if (b != null) { if ((bufferlen - count) < len) { flush(); } if (buffer.length >= len) { System.arraycopy(b, off, buffer, count, len); count += len; } else { try { writeTimestamp = System.currentTimeMillis(); out.write(b, off, len); } finally { writeTimestamp = -1; } } } }
/** * write a byte array to the stream * * @param b the byte buffer * @param off the offset into the buffer * @param len the length of data to write * @throws IOException */ public void write(byte b[], int off, int len) throws IOException { if (b != null) { if ((bufferlen - count) < len) { flush(); } if (buffer.length >= len) { System.arraycopy(b, off, buffer, count, len); count += len; } else { try { writeTimestamp = System.currentTimeMillis(); out.write(b, off, len); } finally { writeTimestamp = -1; } } } }
/** * write a byte array to the stream * * @param b the byte buffer * @param off the offset into the buffer * @param len the length of data to write * @throws IOException */ public void write(byte b[], int off, int len) throws IOException { if (b != null) { if ((bufferlen - count) < len) { flush(); } if (buffer.length >= len) { System.arraycopy(b, off, buffer, count, len); count += len; } else { try { writeTimestamp = System.currentTimeMillis(); out.write(b, off, len); } finally { writeTimestamp = -1; } } } }