Examples of open()


Examples of net.wimpi.modbus.net.SerialConnection.open()

//       params.setEcho(true);
      if (Modbus.debug) System.out.println("Encoding [" + params.getEncoding() + "]");

      //4. Open the connection
      con = new SerialConnection(params);
      con.open();


      //5. Prepare a request
      req = new ReadInputDiscretesRequest(ref, count);
      req.setUnitID(unitid);
View Full Code Here

Examples of net.wimpi.modbusme.net.SerialConnection.open()

      params.setEcho(false);
      if (Modbus.debug) System.out.println("Encoding [" + params.getEncoding() + "]");

      //4. Open the connection
      con = new SerialConnection(params);
      con.open();

      //5. Prepare a request
      req = new ReadInputRegistersRequest(ref, count);
      req.setUnitID(unitid);
      req.setHeadless();
View Full Code Here

Examples of net.yacy.cora.protocol.ftp.FTPClient.open()

    public InputStream getInputStream(final String userAgent, final int timeout) throws IOException {
        if (isFile()) return new FileInputStream(getFSFile());
        if (isSMB()) return new SmbFileInputStream(getSmbFile());
        if (isFTP()) {
            FTPClient client = new FTPClient();
            client.open(this.host, this.port < 0 ? 21 : this.port);
            byte[] b = client.get(this.path);
            client.CLOSE();
            return new ByteArrayInputStream(b);
        }
        if (isHTTP() || isHTTPS()) {
View Full Code Here

Examples of no.geosoft.cc.ui.SplashScreen.open()

    public static void main(String[] args) {
        try {
            System.setProperty("sun.awt.exception.handler", ExceptionHandler.class.getName());

            final SplashScreen splash = new SplashScreen("/org/owasp/webscarab/webscarab_logo.gif");
            splash.open(10000);
            initLogging();

            try {
                Preferences.loadPreferences(null);
            } catch (IOException ioe) {
View Full Code Here

Examples of oracle.sql.BLOB.open()

          {
            String fileName = value.substring(10);
            FileInputStream fis = new FileInputStream(fileName);
           
            BLOB bl = BLOB.createTemporary(conn, true, BLOB.DURATION_CALL);
            bl.open(BLOB.MODE_READWRITE);

            BufferedOutputStream out = new BufferedOutputStream(bl.getBinaryOutputStream());
   
            byte[] buffer = new byte[1024];
            int len;
View Full Code Here

Examples of oracletestapplication.ui.dialogs.TestSuiteDialog.open()

        // connectionData);
        //       
        // dialog.open();
        TestSuiteDialog dialog = new TestSuiteDialog(Display.getDefault().getActiveShell(), connectionData,
            statements);
        dialog.open();
      }
    });

    Button planButton = new Button(composite, SWT.PUSH);
    GridData planData = new GridData();
View Full Code Here

Examples of org.acme.example.component.ExampleComponent.open()

      // additional information can be collected here to populate a model. This simply
      // sets a unique name
      ec.setDisplayName("newComponentFromMenu"+newCount.incrementAndGet());
     
      // show the newly created component in it's own window
      ec.open();
    }
  }

  /**
   * Determines if the component is an instance of ExampleComponent.
View Full Code Here

Examples of org.agilewiki.jfile.JFile.open()

        JFile jFile = new JFile();
        jFile.initialize(mailbox, factory);
        String ts = (new DateTime()).toString("yyyy-MM-dd_HH-mm-ss_SSS");
        Path path = directoryPath.resolve(ts + ".jalog");
        System.out.println(path.toAbsolutePath());
        jFile.open(
                path,
                StandardOpenOption.READ,
                StandardOpenOption.WRITE,
                StandardOpenOption.CREATE);
View Full Code Here

Examples of org.analyse.core.util.save.AnalyseSave.open()

            s.clear();
           
        } else if (action.equals(Constantes.OPEN)) {
            AnalyseSave s = Main.analyseFrame.getAnalyseSave();

            s.open();
        } else if (action.equals(Constantes.SAVE)) {
            AnalyseSave s = Main.analyseFrame.getAnalyseSave();

            s.save();
        } else if (action.equals(Constantes.SAVEAS)) {
View Full Code Here

Examples of org.antlr.v4.runtime.tree.gui.TreeViewer.open()

    return inspect(ruleNames);
  }

  public Future<JDialog> inspect(@Nullable List<String> ruleNames) {
    TreeViewer viewer = new TreeViewer(ruleNames, this);
    return viewer.open();
  }

  /** Save this tree in a postscript file */
  public void save(@Nullable Parser parser, String fileName)
    throws IOException, PrintException
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.