Examples of open()


Examples of ch.epfl.lbd.io.readers.FileReader.open()

  @Test
  public void run() throws Exception {
    super.run();
    Reader reader = new FileReader(new File("src/assets/test.txt"));
    String value;
    reader.open();
    value = (String)reader.read()[0];
    while(value != null){
      logger.info(value);
      Assert.assertTrue(value.contains("this is the "));
      value = (String)reader.read()[0];
View Full Code Here

Examples of ch.epfl.lbd.io.readers.NMEAReader.open()

 
  @Test
  public void testReader() throws Exception {

    NMEAReader reader = new NMEAReader(new File("src/assets/Nottingham_Bolton.nmea"),NMEAReader.VERS_0183);
    reader.open();
    while(true){
      NMEAPoint point = reader.getNextNMEAPoint();
      if(point == null)break;
      logger.info(point.toString());
    }
View Full Code Here

Examples of ch.epfl.lbd.io.readers.OV2Reader.open()

    super.run();
    Reader reader = new OV2Reader(new File("src/assets/test.ov2"));
    String name = "";
    String lat = "";
    String lng = "";
    reader.open();
    String[] record = (String[])reader.read();
    if(record != null){
      name   = record[0];
      lat   = record[1];
      lng   = record[2];
View Full Code Here

Examples of ch.epfl.lbd.io.readers.Reader.open()

  @Test
  public void run() throws Exception {
    super.run();
    Reader reader = new FileReader(new File("src/assets/test.txt"));
    String value;
    reader.open();
    value = (String)reader.read()[0];
    while(value != null){
      logger.info(value);
      Assert.assertTrue(value.contains("this is the "));
      value = (String)reader.read()[0];
View Full Code Here

Examples of ch.epfl.lbd.io.readers.ShapeFileReader.open()

  public static void convert(String input, String output) throws Exception{
    //load shp file
    ShapeFileReader reader = null;
    reader = new ShapeFileReader(new File(input));
    reader.open();
   
    //get all geometries and invert LAT,LNG coordinates
    Geometry[] geometries = reader.readAll();
   
    for(int i = 0 ; i < geometries.length ; i++ ){
View Full Code Here

Examples of ch.epfl.lbd.io.writers.ShapeFileWriter.open()

   
   
    //save shp file
    ShapeFileWriter writer = null;
    writer = new ShapeFileWriter(output);
    writer.open();
    writer.write(geometries);
   
    //closing Readers, Writers
    reader.close();
    writer.close();
View Full Code Here

Examples of ch.ethz.prose.eclipse.internal.run.ProseRunSelectionDialog.open()

            return;
        }

        ProseRunSelectionDialog dialog = new ProseRunSelectionDialog(ProsePlugin.getShell(), managers);
        dialog.setTitle("Aspect manager selection");
        dialog.open();
        if (dialog.getReturnCode() == Dialog.OK) {
            try {
                dialog.getAspectManager().insertAspect(type);
            } catch (UnreachableException e) {
                ProsePlugin.openErrorDialog("Aspect insertion failed",
View Full Code Here

Examples of ch.mtSystems.jnc.view.dialogs.InputDialog.open()

    } else if(e.getSource() == bAddFlag)
    {
      InputDialog inputDialog = new InputDialog(JNC.getContentComposite().getShell());
      inputDialog.setTitle("New GCJ flag");
      inputDialog.setMessage("GCJ flag to add:");
      String flag = inputDialog.open();
      if(flag == null) return;
     
      AppController.getAppController().getCurrentProject().addGcjFlags(flag, false);
      (new TableItem(tGcjFlags, SWT.NONE)).setText(flag);
    } else if(e.getSource() == bRemoveFlag)
View Full Code Here

Examples of ch.mtSystems.jnc.view.dialogs.MainClassDialog.open()

      AppController.getAppController().loadPage(AppController.PAGE_SOURCE);
    } else if(e.getSource() == bOpenMainClass)
    {
      MainClassDialog mainClassDialog = new MainClassDialog(JNC.getContentComposite().getShell());
      mainClassDialog.setBlockOnOpen(true);
      Object[] oa = (Object[])mainClassDialog.open();
      if(oa == null) return;

      File outputDirSuggestion = (File)oa[0];
      File mainClassRessource = (File)oa[1];
      String mainClass = (String)oa[2];
View Full Code Here

Examples of ch.ntb.inf.libusbJava.Device.open()

      byte[] readData = new byte[data.length];

      // open the device with configuration 1, interface 0 and without
      // altinterface
      // this will initialise Libusb for you
      dev.open(1, 0, -1);
      // write some data to the device
      // 0x03 is the endpoint address of the OUT endpoint 3 (from PC to
      // device)
      dev.writeInterrupt(0x02, data, data.length, 2000, false);
      // read some data from the device
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.