Java input/output byte buffer, with custom size write buffer fill before start reading