for(int i=0;i<len;++i) {
if(cbuf[off+i] == '\r') {
if(i > begin)
- write(cbuf, off+begin, i-begin);
+ out.write(cbuf, off+begin, i-begin);
begin = i+1;
}
}
if(len > begin)
- write(cbuf, off+begin, len-begin);
+ out.write(cbuf, off+begin, len-begin);
}
@Override
for(int i=0;i<len;++i) {
if(str.charAt(off+i) == '\r') {
if(i > begin)
- write(str, off+begin, i-begin);
+ out.write(str, off+begin, i-begin);
begin = i+1;
}
}
if(len > begin)
- write(str, off+begin, len-begin);
+ out.write(str, off+begin, len-begin);
}
}