getSnapshot method
Generates a snapshot of the text location if applicable
Implementation
String getSnapshot() {
if (canRead) {
if (_position + 64 < _buffer.length) {
return _buffer.substring(_position, _position + 64);
} else {
return _buffer.substring(_position);
}
} else
return "";
}