Examples of open()


Examples of org.jmule.ui.swt.common.SpeedScaleShell.open()

   
    for(Long v : sets) {
      speedScaleWidget.addOption(SpeedFormatter.formatByteCountToKiBEtcPerSec(v * 1024,true), v);
    }
   
    boolean result = speedScaleWidget.open(down_limit, JMConstants.isWindows);
    if (result) {
      long value = speedScaleWidget.getValue();
      value*=1024;
      try {
        config_manager.setDownloadLimit(value);
View Full Code Here

Examples of org.jnode.driver.bus.usb.USBDataPipe.open()

            // Set usb mass storage informations.
            this.storageDeviceData = new USBStorageDeviceData(usbDevice);
            USBDataPipe pipe;
            pipe = (USBDataPipe) this.storageDeviceData.getBulkOutEndPoint().getPipe();
            pipe.addListener(this);
            pipe.open();

            pipe = (USBDataPipe) this.storageDeviceData.getBulkInEndPoint().getPipe();
            pipe.addListener(this);
            pipe.open();
View Full Code Here

Examples of org.jnode.driver.video.FrameBufferAPI.open()

            }

            final FrameBufferAPI api = dev.getAPI(FrameBufferAPI.class);
            final FrameBufferConfiguration conf = api.getConfigurations()[0];

            g = api.open(conf);

            TextScreenConsoleManager mgr = new TextScreenConsoleManager();

            ScrollableTextScreen ts = new FBConsole.FBPcTextScreen(g).createCompatibleScrollableBufferScreen(500);
View Full Code Here

Examples of org.jquantlib.math.IntervalPrice.open()

        IntervalPrice prev = quotes.get(date);
        while (it.hasNext()) {
            date = it.next();
            final IntervalPrice curr = quotes.get(date);
            final double c0 = Math.log(prev.close());
            final double o1 = Math.log(curr.open());
            final double sigma2 = this.a * (o1 - c0) * (o1 - c0) / this.f + (1 - this.a) * delegate.calculatePoint(curr) / (1 - this.f);
            retval.put(date, Math.sqrt(sigma2 / delegate.getYearFraction()) );
            prev = curr;
        }
        return retval;
View Full Code Here

Examples of org.jruby.util.io.PosixShim.open()

//            flags |= O_CLOEXEC;
//        #elif defined O_NOINHERIT
//            flags |= O_NOINHERIT;
//        #endif
        PosixShim shim = new PosixShim(runtime.getPosix());
        ret = shim.open(runtime.getCurrentDirectory(), data.fname, ModeFlags.createModeFlags(data.oflags), data.perm);
        if (ret == null) {
            data.errno = shim.errno;
            return null;
        }
        // TODO, if we need it?
View Full Code Here

Examples of org.jruby.yaml.JRubySerializer.open()

        } else {
            iox = new IOOutputStream(io);
        }
        Serializer ser = new JRubySerializer(new EmitterImpl(iox,cfg),new ResolverImpl(),cfg);
        try {
            ser.open();
            Representer r = new JRubyRepresenter(ser, cfg);
            for(Iterator iter = objs.getList().iterator();iter.hasNext();) {
                r.represent(iter.next());
            }
            ser.close();
View Full Code Here

Examples of org.jsefa.Deserializer.open()

      addColumn("schedule", "holidaysprovince", "varchar(8)");

      // Create the standard holidays
      Deserializer holidayReader = CsvIOFactory.createFactory(Holiday.class).createDeserializer();

      holidayReader.open(new InputStreamReader(this.getClass().getResourceAsStream("holidays_de.csv")));

      while (holidayReader.hasNext())
      {
        Holiday holiday = holidayReader.next();
View Full Code Here

Examples of org.jvnet.solaris.libzfs.LibZFS.open()

        File tmpDir = Util.createTempDir();

        // mount a new file system to a temporary location
        out.println("Opening "+target);
        ZFSFileSystem hudson = zfs.open(target, ZFSFileSystem.class);
        hudson.setMountPoint(tmpDir);
        hudson.setProperty("hudson:managed-by","hudson"); // mark this file system as "managed by Hudson"
        hudson.mount();

        // copy all the files
View Full Code Here

Examples of org.jvyamlb.Serializer.open()

        } else {
            iox = new IOOutputStream(io);
        }
        Serializer ser = new JRubySerializer(new EmitterImpl(iox,cfg),new ResolverImpl(),cfg);
        try {
            ser.open();
            Representer r = new JRubyRepresenter(ser, cfg);
            for(Iterator iter = objs.getList().iterator();iter.hasNext();) {
                r.represent(iter.next());
            }
            ser.close();
View Full Code Here

Examples of org.kiji.schema.layout.impl.ZooKeeperMonitor.LayoutTracker.open()

    BlockingQueue<byte[]> layoutQueue = Queues.newSynchronousQueue();
    LayoutTracker tracker =
        zkMonitor.newTableLayoutTracker(tableURI, new QueueingLayoutUpdateHandler(layoutQueue));
    try {
      tracker.open();
      Assert.assertEquals(layout1, Bytes.toString(layoutQueue.poll(5, TimeUnit.SECONDS)));

      ZooKeeperUtils.setTableLayout(mZKClient, tableURI, layout2);
      Assert.assertEquals(layout2, Bytes.toString(layoutQueue.poll(5, TimeUnit.SECONDS)));
    } finally {
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.