com.graphhopper.util.Helper.saveProperties()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(122)

本文整理了Java中com.graphhopper.util.Helper.saveProperties()方法的一些代码示例,展示了Helper.saveProperties()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.saveProperties()方法的具体详情如下:
包路径:com.graphhopper.util.Helper
类名称:Helper
方法名:saveProperties

Helper.saveProperties介绍

暂无

代码示例

代码示例来源:origin: graphhopper/graphhopper

  1. @Override
  2. public synchronized void flush() {
  3. try {
  4. StringWriter sw = new StringWriter();
  5. saveProperties(map, sw);
  6. // TODO at the moment the size is limited to da.segmentSize() !
  7. byte[] bytes = sw.toString().getBytes(UTF_CS);
  8. da.setBytes(0, bytes, bytes.length);
  9. da.flush();
  10. } catch (IOException ex) {
  11. throw new RuntimeException(ex);
  12. }
  13. }

代码示例来源:origin: com.graphhopper/graphhopper-core

  1. @Override
  2. public synchronized void flush() {
  3. try {
  4. StringWriter sw = new StringWriter();
  5. saveProperties(map, sw);
  6. // TODO at the moment the size is limited to da.segmentSize() !
  7. byte[] bytes = sw.toString().getBytes(UTF_CS);
  8. da.setBytes(0, bytes, bytes.length);
  9. da.flush();
  10. } catch (IOException ex) {
  11. throw new RuntimeException(ex);
  12. }
  13. }

代码示例来源:origin: com.rgi-corp/graphhopper

  1. @Override
  2. public synchronized void flush() {
  3. try {
  4. StringWriter sw = new StringWriter();
  5. Helper.saveProperties(map, sw);
  6. // TODO at the moment the size is limited to da.segmentSize() !
  7. byte[] bytes = sw.toString().getBytes(Helper.UTF_CS);
  8. da.setBytes(0, bytes, bytes.length);
  9. da.flush();
  10. } catch (IOException ex) {
  11. throw new RuntimeException(ex);
  12. }
  13. }

代码示例来源:origin: com.graphhopper/graphhopper

  1. @Override
  2. public void flush()
  3. {
  4. try
  5. {
  6. StringWriter sw = new StringWriter();
  7. Helper.saveProperties(map, sw);
  8. // TODO at the moment the size is limited to da.segmentSize() !
  9. byte[] bytes = sw.toString().getBytes(Helper.UTF_CS);
  10. da.setBytes(0, bytes, bytes.length);
  11. da.flush();
  12. } catch (IOException ex)
  13. {
  14. throw new RuntimeException(ex);
  15. }
  16. }

相关文章