// Open the file for writing
_saveFile.setReadable(true);
// Open a shared input stream to the local save file to
// allow many simultaneous readers.
final SharedInputStream fileStream =
SharedInputStream.getSharedInputStream(_saveFile
.openInputStream());
// Begin reading at the beginning of the file
fileStream.setCurrentPosition(0);
// If the local file is smaller than the remote file...
if (_saveFile.fileSize() < _contentConnection.getLength()) {
// Did not get the entire file, set the system to try again
_saveFile.setWritable(true);