if (meta == null) {
return Futures.immediateFailedFuture(
new FileNotFoundException(this + ": No such file: " + filename));
}
if (offset >= meta.getLength()) {
return Futures.immediateFailedFuture(new BadRangeException(
"The requested range cannot be satisfied. bytes=" + Long.toString(offset) + "-"
+ Long.toString(offset + dst.remaining()) + " the file is only " + meta.getLength()));
}
AppEngineFile file = nameToAppEngineFile(filename);
try (FileReadChannel readChannel = FILES.openReadChannel(file, false)) {