本文整理了Java中org.openimaj.io.IOUtils.writeBinaryFull()
方法的一些代码示例,展示了IOUtils.writeBinaryFull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IOUtils.writeBinaryFull()
方法的具体详情如下:
包路径:org.openimaj.io.IOUtils
类名称:IOUtils
方法名:writeBinaryFull
[英]Write an object to a file fully. The object will be saved with class information so that it can be automatically re-instantiated using #read(File) without needing to know the actual type.
[中]将对象完全写入文件。对象将与类信息一起保存,以便可以使用#read(File)自动重新实例化,而无需知道实际类型。
代码示例来源:origin: openimaj/openimaj
/**
* Save the {@link FaceRecognitionEngine} to a file, including all the
* internal state of the recogniser, etc.
*
* @param file
* the file to save to
* @throws IOException
* if an error occurs when writing
*/
public void save(final File file) throws IOException {
IOUtils.writeBinaryFull(file, this);
}
代码示例来源:origin: openimaj/openimaj
private FEATURE write(FEATURE feature, File cachedFeature) throws IOException {
if (feature instanceof WriteableBinary) {
IOUtils.writeBinaryFull(cachedFeature, (WriteableBinary) feature);
} else {
IOUtils.writeToFile(feature, cachedFeature);
}
return feature;
}
代码示例来源:origin: org.openimaj/core-feature
private FEATURE write(FEATURE feature, File cachedFeature) throws IOException {
if (feature instanceof WriteableBinary) {
IOUtils.writeBinaryFull(cachedFeature, (WriteableBinary) feature);
} else {
IOUtils.writeToFile(feature, cachedFeature);
}
return feature;
}
代码示例来源:origin: org.openimaj/sandbox
final File f = new File("rec.bin");
f.delete();
IOUtils.writeBinaryFull(f, this.recogniser);
} catch (final IOException e) {
e.printStackTrace();
代码示例来源:origin: org.openimaj/sandbox
final File f = new File("rec.bin");
f.delete();
IOUtils.writeBinaryFull(f, this.recogniser);
} catch (final IOException e) {
e.printStackTrace();
代码示例来源:origin: openimaj/openimaj
final File f = new File("rec.bin");
f.delete();
IOUtils.writeBinaryFull(f, this.recogniser);
} catch (final IOException e) {
e.printStackTrace();
代码示例来源:origin: openimaj/openimaj
final File f = new File("rec.bin");
f.delete();
IOUtils.writeBinaryFull(f, this.recogniser);
} catch (final IOException e) {
e.printStackTrace();
内容来源于网络,如有侵权,请联系作者删除!