/**
* @return the compression codec in use for this file.
*/
public Class<? extends CompressionCodec> getCompressionCodecClass() {
if (!isReader)
return DefaultCodec.class;
Reader reader = null;
try {
reader = createReader();
if (reader.getCompressionCodec() == null)
return null;
return reader.getCompressionCodec().getClass();
} catch (final Exception e) {
throw new RuntimeException(e);
} finally {
if (reader != null)
try {
reader.close();
} catch (final IOException e1) {
}
}
}
SequenceFileUtility.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:openimaj
作者:
评论列表
文章目录