*/
public InputStream getDataInputStream() throws S3ServiceException {
if (dataInputStream == null && dataInputFile != null) {
try {
// Use a repeatable file data input stream, so transmissions can be retried if necessary.
dataInputStream = new RepeatableFileInputStream(dataInputFile);
} catch (FileNotFoundException e) {
throw new S3ServiceException("Cannot open file input stream", e);
}
}
return dataInputStream;