Repaired little write bug.

This commit is contained in:
ctu-developers
2014-10-13 12:05:21 +02:00
parent 29b1d28566
commit 0759e0af3b

View File

@@ -300,6 +300,7 @@ public class BitstreamResource extends Resource
log.info("Reading data of bitstream(id=" + bitstreamId + ")."); log.info("Reading data of bitstream(id=" + bitstreamId + ").");
org.dspace.core.Context context = null; org.dspace.core.Context context = null;
InputStream inputStream = null; InputStream inputStream = null;
String type = null;
try try
{ {
@@ -311,7 +312,7 @@ public class BitstreamResource extends Resource
log.trace("Bitsream(id=" + bitstreamId + ") data was successfully read."); log.trace("Bitsream(id=" + bitstreamId + ") data was successfully read.");
inputStream = dspaceBitstream.retrieve(); inputStream = dspaceBitstream.retrieve();
String type = dspaceBitstream.getFormat().getMIMEType(); type = dspaceBitstream.getFormat().getMIMEType();
context.complete(); context.complete();
} }