if (m_uploadStartTime.get(internalId) != null) {
// found... return inputstream
try {
return new FileInputStream(new File(m_tempDir, internalId));
} catch (Exception e) {
throw new StreamReadException(e.getMessage());
}
} else {
throw new StreamReadException("Id specified, '" + id
+ "', does not match an existing file.");
}
} else {
throw new StreamReadException("Invalid id syntax '" + id + "'.");
}
}