/** * Get the format of the bitstream * * @param context context * @return the format of this bitstream * @throws SQLException if database error */ public BitstreamFormat getFormat(Context context) throws SQLException { return getBitstreamService().getFormat(context, this); }
String path = new DSpace().getRequestService().getCurrentRequest().getHttpServletRequest().getContextPath(); retrieveLink = path + "/bitstreams/" + bitstream.getID() + "/retrieve"; mimeType = bitstreamService.getFormat(context, bitstream).getMIMEType(); sequenceId = bitstream.getSequenceID(); CheckSum checkSum = new CheckSum();