BitstreamFormat bf = bitstreamFormatService.guessFormat(c, bs); bitstreamService.setFormat(c, bs, bf); bs.setDescription(c, description);
BitstreamFormat bf = bitstreamFormatService.guessFormat(c, bs); bitstreamService.setFormat(c, bs, bf);
BitstreamFormat bf = bitstreamFormatService.findByShortDescription(context, "License"); if (bf == null) { bf = bitstreamFormatService.guessFormat(context, lbs);
: bitstreamFormatService.findByMIMEType(context, mimeType); if (bf == null) { bf = bitstreamFormatService.guessFormat(context, bitstream);
bitstreamFormatService.findByMIMEType(context, MIMEType); if (bf == null) { bf = bitstreamFormatService.guessFormat(context, bitstream);
BitstreamFormat bsFormat = bitstreamFormatService.findByMIMEType(context, mimeString); if (bsFormat == null) { bsFormat = bitstreamFormatService.guessFormat(context, newBitstream);
BitstreamFormat fmt = bitstreamFormatService.guessFormat(context, bs); bitstreamService.setFormat(context, bs, fmt);
OREBitstream.setName(ourContext, "ORE.xml"); BitstreamFormat bf = bitstreamFormatService.guessFormat(ourContext, OREBitstream); bitstreamService.setFormat(ourContext, OREBitstream, bf); bitstreamService.update(ourContext, OREBitstream);