@Override
public void run()
{
try
{
XThreadOutputStream outputStream = new XThreadOutputStream(stream);
try
{
int status = LLDocs.FetchVersion(volumeID, docID, versionNumber, outputStream);
if (status != 0)
{
throw new ManifoldCFException("Error retrieving contents of document "+Integer.toString(volumeID)+":"+Integer.toString(docID)+" revision "+versionNumber+" : Status="+Integer.toString(status)+" ("+llServer.getErrors()+")");
}
}
finally
{
outputStream.close();
}
} catch (Throwable e) {
this.exception = e;
}
}