Examples of writeModel()


Examples of com.bbn.openmap.dataAccess.shape.output.DbfOutputStream.writeModel()

                                    list.getType(),
                                    list.getExtents());

                            DbfOutputStream dos = new DbfOutputStream(new FileOutputStream(path
                                    + ".dbf"));
                            dos.writeModel(layer.getModel());
                        } catch (Exception exception) {
                            System.out.println(exception);
                        }
                    }
                } else {
View Full Code Here

Examples of com.bbn.openmap.dataAccess.shape.output.DbfOutputStream.writeModel()

                location = location + ".dbf";
            }
        }
        if (location != null) {
            DbfOutputStream dos = new DbfOutputStream(new FileOutputStream(new File(location)));
            dos.writeModel(model);
        }

        return location;
    }
View Full Code Here

Examples of com.bbn.openmap.dataAccess.shape.output.DbfOutputStream.writeModel()

            dtm.readData(0, (int) num);

            if (target != null) {
                OutputStream os = new FileOutputStream(target);
                DbfOutputStream dos = new DbfOutputStream(os);
                dos.writeModel(dtm);
            } else {
                dtm.setWritable(true);
                dtm.exitOnClose = true;
                dtm.showGUI(args[0], MODIFY_ROW_MASK | MODIFY_COLUMN_MASK
                        | SAVE_MASK);
View Full Code Here

Examples of com.peterhi.io.PmOutputStream.writeModel()

    threadPool.submit(new Run<Void>() {
      @Override
      protected void onRun() throws Exception {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        PmOutputStream pos = new PmOutputStream(baos);
        pos.writeModel(sink);
        byte[] bytes = baos.toByteArray();
        server.send(address, bytes, 0, bytes.length, reliable);
        pos.close();
      }
    }.asRunnable());
View Full Code Here

Examples of com.peterhi.io.PmOutputStream.writeModel()

 
  private void doWriteModel(SocketAddress address, PropModel model)
    throws Exception {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    PmOutputStream pos = new PmOutputStream(baos);
    pos.writeModel(model);
    byte[] buffer = baos.toByteArray();
    server.send(address, buffer, 0, buffer.length, true);
    pos.close();
  }
 
View Full Code Here

Examples of com.peterhi.io.PmOutputStream.writeModel()

    Assert.assertEquals(new uintx(uintx.MAX_62),
      PropUtil.getValue(p0, "uintxValue"));
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    PmOutputStream pos = new PmOutputStream(baos);
    pos.writeModel(p0);
   
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    PmInputStream pis = new PmInputStream(bais);
    Primitives p1 = pis.readModel();
   
View Full Code Here

Examples of com.peterhi.io.PmOutputStream.writeModel()

    b0.setFloatObject(Float.MAX_VALUE);
    b0.setDoubleObject(Double.MAX_VALUE);
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    PmOutputStream pos = new PmOutputStream(baos);
    pos.writeModel(bNull);
    pos.writeModel(b0);
   
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    PmInputStream pis = new PmInputStream(bais);
    Boxers bNull2 = pis.readModel();
View Full Code Here

Examples of com.peterhi.io.PmOutputStream.writeModel()

    b0.setDoubleObject(Double.MAX_VALUE);
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    PmOutputStream pos = new PmOutputStream(baos);
    pos.writeModel(bNull);
    pos.writeModel(b0);
   
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    PmInputStream pis = new PmInputStream(bais);
    Boxers bNull2 = pis.readModel();
    Boxers b1 = pis.readModel();
View Full Code Here

Examples of com.peterhi.obsolete.ModelOutputStream.writeModel()

    benben.aliases().add("SB");
    benben.aliases().add("B");
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    ModelOutputStream mos = new ModelOutputStream(baos);
    mos.writeModel(jason);
   
    byte[] data = baos.toByteArray();
    System.out.println(baos.size());
   
    ByteArrayInputStream bais = new ByteArrayInputStream(data);
View Full Code Here

Examples of org.apache.maven.project.MavenProject.writeModel()

    if (pom != null) {
      File targetPom = new File(project.getFileSystem().getSonarWorkingDirectory(), "sonar-pom.xml");
      FileWriter fileWriter = null;
      try {
        fileWriter = new FileWriter(targetPom, false);
        pom.writeModel(fileWriter);

      } catch (IOException e) {
        throw new IllegalStateException("Can not save pom to " + targetPom, e);
      } finally {
        IOUtils.closeQuietly(fileWriter);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.