cb.setOffset(0);
cb.setEnd(0);
}
int limit = bb.getLength()+cb.getStart();
if ( cb.getLimit() < limit )
cb.setLimit(limit);
state = CHAR_STATE;
conv.convert(bb, cb, len);
conv.convert(bb, cb, bb.getLength());
bb.setOffset(bb.getEnd());
return cb.getLength();
int offset = readAheadLimit;
cb.setLimit(cb.getStart() + readAheadLimit + size);
if (offset < size) {
offset = size;
cb.setLimit(cb.getStart() + offset);
markPos = cb.getStart();