/** * Appends bytes to the end of the stream * @param buf * @throws IOException * @see #write(byte[],int,int) */ public void write(byte[] buf) throws IOException { if(buf != null) write(buf, 0, buf.length); }
protected void handleStateChunk(Address sender, byte[] buffer, int offset, int length) { if(buffer == null || input_stream == null) return; try { if(log.isTraceEnabled()) log.trace("%s: received chunk of %s from %s",local_addr,Util.printBytes(length),sender); input_stream.write(buffer, offset, length); } catch(IOException e) { handleException(e); } }
/** * Appends bytes to the end of the stream * @param buf * @throws IOException * @see #write(byte[],int,int) */ public void write(byte[] buf) throws IOException { if(buf != null) write(buf, 0, buf.length); }
protected void handleStateChunk(Address sender, byte[] buffer, int offset, int length) { if(buffer == null || input_stream == null) return; try { if(log.isTraceEnabled()) log.trace("%s: received chunk of %s from %s",local_addr,Util.printBytes(length),sender); input_stream.write(buffer, offset, length); } catch(IOException e) { handleException(e); } }