Examples of open()


Examples of com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open()

    {
        int port = LDAPTestSetup.getLDAPPort();

        XWikiLDAPConnection connection = new XWikiLDAPConnection();

        assertTrue("LDAP connection failed", connection.open("localhost", port, LDAPTestSetup.HORATIOHORNBLOWER_DN,
            LDAPTestSetup.HORATIOHORNBLOWER_PWD, null, false, context));

        connection.close();
    }
}
View Full Code Here

Examples of com.xuggle.xuggler.IContainer.open()

    IContainerFormat format = IContainerFormat.make();
    if (format.setInputFormat(driverName) < 0)
      throw new IllegalArgumentException("couldn't open webcam device: " + driverName);
   
    // Open up the container
    int retval = container.open(deviceName, IContainer.Type.READ, format);
    if (retval < 0)
    {
      // This little trick converts the non friendly integer return value into
      // a slightly more friendly object to get a human-readable error name
      IError error = IError.make(retval);
View Full Code Here

Examples of com.xuggle.xuggler.IStreamCoder.open()

      ICodec.Type type = coder.getCodecType();
      if (!coder.isOpen() && isSupportedCodecType(type))
      {
        // open the coder

        int rv = coder.open();
        if (rv < 0)
          throw new RuntimeException("could not open stream " + stream + ": "
              + getErrorMessage(rv));
        mOpenedStreams.add(stream);
View Full Code Here

Examples of com.xuggle.xuggler.io.FileProtocolHandler.open()

    assertTrue(retval >= 0);

    // Now, create and open a read handler.
    // note that without a protocol string, should default to file:
    IURLProtocolHandler reader = new FileProtocolHandler(sampleFile);
    retval = reader.open(null, IURLProtocolHandler.URL_RDONLY_MODE);

    long bytesWritten = 0;
    long totalBytes = reader.seek(0, IURLProtocolHandler.SEEK_SIZE);

    byte[] buffer = new byte[1024];
View Full Code Here

Examples of com.xuggle.xuggler.io.IURLProtocolHandler.open()

    assertTrue(retval >= 0);

    // Now, create and open a read handler.
    // note that without a protocol string, should default to file:
    IURLProtocolHandler reader = new FileProtocolHandler(sampleFile);
    retval = reader.open(null, IURLProtocolHandler.URL_RDONLY_MODE);

    long bytesWritten = 0;
    long totalBytes = reader.seek(0, IURLProtocolHandler.SEEK_SIZE);

    byte[] buffer = new byte[1024];
View Full Code Here

Examples of dcamj.DcamAcquisition.open()

                            + " index="
                            + pDcamFrame.getIndex());
      }
    });

    lDcamAcquisition.open();
    lDcamAcquisition.getProperties().setOutputTriggerToProgrammable();
    lDcamAcquisition.startAcquisition();
    Thread.sleep(250);
    lDcamAcquisition.stopAcquisition();
    lDcamAcquisition.close();
View Full Code Here

Examples of de.ailis.xadrian.dialogs.AddFactoryDialog.open()

    @Override
    public void addFactory()
    {
        final AddFactoryDialog dialog =
            this.complex.getGame().getAddFactoryDialog();
        if (dialog.open() == Result.OK)
        {
            for (final Factory factory : dialog.getFactories())
            {
                this.complex.addFactory(factory);
            }
View Full Code Here

Examples of de.ailis.xadrian.dialogs.ChangePricesDialog.open()

    {
        final ChangePricesDialog dialog =
            this.complex.getGame().getChangePricesDialog();
        dialog.setCustomPrices(this.complex.getCustomPrices());
        dialog.setActiveWare(focusedWare);
        if (dialog.open(this.complex) == Result.OK)
        {
            this.complex.setCustomPrices(dialog.getCustomPrices());
            doChange();
            redraw();
        }
View Full Code Here

Examples of de.ailis.xadrian.dialogs.ChangeQuantityDialog.open()

     */
    public void changeQuantity(final int index)
    {
        final ChangeQuantityDialog dialog = ChangeQuantityDialog.getInstance();
        dialog.setQuantity(this.complex.getQuantity(index));
        if (dialog.open() == Result.OK)
        {
            this.complex.setQuantity(index, dialog.getQuantity());
            doChange();
            redraw();
        }
View Full Code Here

Examples of de.ailis.xadrian.dialogs.ChangeSunsDialog.open()

    public void changeSuns()
    {
        final ChangeSunsDialog dialog =
            this.complex.getGame().getChangeSunsDialog();
        dialog.setSuns(this.complex.getSuns());
        if (dialog.open() == Result.OK)
        {
            this.complex.setSuns(dialog.getSuns());
            doChange();
            redraw();
        }
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.