本文整理了Java中net.sf.okapi.common.Util.writeBOMIfNeeded()
方法的一些代码示例,展示了Util.writeBOMIfNeeded()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.writeBOMIfNeeded()
方法的具体详情如下:
包路径:net.sf.okapi.common.Util
类名称:Util
方法名:writeBOMIfNeeded
[英]Writes a Byte-Order-Mark if the encoding indicates it is needed. This methods must be the first call after opening the writer.
[中]如果编码指示需要,则写入字节顺序标记。此方法必须是打开writer后的第一个调用。
代码示例来源:origin: net.sf.okapi.filters/okapi-filter-transtable
Util.writeBOMIfNeeded(writer, useUTF8BOM, encoding);
代码示例来源:origin: net.sf.okapi.filters/okapi-filter-versifiedtxt
Util.writeBOMIfNeeded(writer, useUTF8BOM, encoding);
} catch (FileNotFoundException e) {
throw new OkapiFileNotFoundException(e);
代码示例来源:origin: net.sf.okapi/okapi-core
Util.writeBOMIfNeeded(writer, useUTF8BOM, encoding);
代码示例来源:origin: net.sf.okapi.filters/okapi-filter-po
Util.writeBOMIfNeeded(writer, useUTF8BOM, encoding);
代码示例来源:origin: net.sf.okapi.steps/okapi-step-rtfconversion
Util.writeBOMIfNeeded(writer, params.getBomOnUTF8(), outputEncoding);
代码示例来源:origin: net.sf.okapi.steps/okapi-step-searchandreplace
new OutputStreamWriter(
new FileOutputStream(outFile), encoding));
Util.writeBOMIfNeeded(writer, detector.hasUtf8Bom(), encoding);
writer.write(result);
writer.close(); writer = null;
内容来源于网络,如有侵权,请联系作者删除!