本文整理了Java中com.graphhopper.util.Helper.saveProperties()
方法的一些代码示例,展示了Helper.saveProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.saveProperties()
方法的具体详情如下:
包路径:com.graphhopper.util.Helper
类名称:Helper
方法名:saveProperties
暂无
代码示例来源:origin: graphhopper/graphhopper
@Override
public synchronized void flush() {
try {
StringWriter sw = new StringWriter();
saveProperties(map, sw);
// TODO at the moment the size is limited to da.segmentSize() !
byte[] bytes = sw.toString().getBytes(UTF_CS);
da.setBytes(0, bytes, bytes.length);
da.flush();
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}
代码示例来源:origin: com.graphhopper/graphhopper-core
@Override
public synchronized void flush() {
try {
StringWriter sw = new StringWriter();
saveProperties(map, sw);
// TODO at the moment the size is limited to da.segmentSize() !
byte[] bytes = sw.toString().getBytes(UTF_CS);
da.setBytes(0, bytes, bytes.length);
da.flush();
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}
代码示例来源:origin: com.rgi-corp/graphhopper
@Override
public synchronized void flush() {
try {
StringWriter sw = new StringWriter();
Helper.saveProperties(map, sw);
// TODO at the moment the size is limited to da.segmentSize() !
byte[] bytes = sw.toString().getBytes(Helper.UTF_CS);
da.setBytes(0, bytes, bytes.length);
da.flush();
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}
代码示例来源:origin: com.graphhopper/graphhopper
@Override
public void flush()
{
try
{
StringWriter sw = new StringWriter();
Helper.saveProperties(map, sw);
// TODO at the moment the size is limited to da.segmentSize() !
byte[] bytes = sw.toString().getBytes(Helper.UTF_CS);
da.setBytes(0, bytes, bytes.length);
da.flush();
} catch (IOException ex)
{
throw new RuntimeException(ex);
}
}
内容来源于网络,如有侵权,请联系作者删除!