本文整理了Java中org.dspace.content.Bitstream.getUserFormatDescription()
方法的一些代码示例,展示了Bitstream.getUserFormatDescription()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bitstream.getUserFormatDescription()
方法的具体详情如下:
包路径:org.dspace.content.Bitstream
类名称:Bitstream
方法名:getUserFormatDescription
[英]Get the user's format description. Returns null if the format is known by the system.
[中]获取用户的格式说明。如果系统已知格式,则返回null。
代码示例来源:origin: DSpace/DSpace
@Override
public String getFormatDescription(Context context, Bitstream bitstream) throws SQLException {
if (bitstream.getFormat(context).getShortDescription().equals("Unknown")) {
// Get user description if there is one
String desc = bitstream.getUserFormatDescription();
if (desc == null) {
return "Unknown";
}
return desc;
}
// not null or Unknown
return bitstream.getFormat(context).getShortDescription();
}
代码示例来源:origin: DSpace/DSpace
info.getStoreNumber()).append("\n");
buf.append(msg("description")).append(" = ").append(
info.getUserFormatDescription()).append("\n");
buf.append("----------------------------------------------- \n\n");
osw.write(buf.toString());
代码示例来源:origin: DSpace/DSpace
newBitstream.setSource(context, bitstream.getSource());
newBitstream.setUserFormatDescription(context, bitstream
.getUserFormatDescription());
bitstreamService.update(context, newBitstream);
代码示例来源:origin: org.dspace/dspace-xmlui-api
validityKey.append(bitstream.getChecksumAlgorithm());
validityKey.append(bitstream.getSize());
validityKey.append(bitstream.getUserFormatDescription());
validityKey.append(bitstream.getFormat().getDescription());
代码示例来源:origin: DSpace/DSpace
.getID() : "-1"));
LOG.info(msg("user-format-description") + ": "
+ bitstream.getUserFormatDescription());
LOG.info(msg("source") + ": " + bitstream.getSource());
LOG
代码示例来源:origin: DSpace/DSpace
dc.add(makeDC("description", null, bsDesc));
String bsUfmt = bitstream.getUserFormatDescription();
if (bsUfmt != null) {
dc.add(makeDC("format", null, bsUfmt));
代码示例来源:origin: org.dspace/dspace-xmlui-api
userFormat.setLabel(T_format_user);
userFormat.setHelp(T_format_user_help);
userFormat.setValue(bitstream.getUserFormatDescription());
代码示例来源:origin: org.dspace/dspace-xmlui-api
userFormat.setLabel(T_user_label);
userFormat.setHelp(T_user_help);
userFormat.setValue(bitstream.getUserFormatDescription());
内容来源于网络,如有侵权,请联系作者删除!