Examples of open()


Examples of javazoom.jlgui.basicplayer.BasicController.open()

// It means that this object will be notified on BasicPlayer
// events such as : opened(...), progress(...), stateUpdated(...)
        player.addBasicPlayerListener(this);

        try { // Open file, or URL or Stream (shoutcast, icecast) to play.
            control.open(new File(filename));

// control.open(new URL("http://yourshoutcastserver.com:8000"));
// Start playback in a thread. control.play();
// If you want to pause/resume/pause the played file then
// write a Swing player and just call control.pause(),
View Full Code Here

Examples of javazoom.jlgui.basicplayer.BasicPlayer.open()

    }

    public void intro() {
        try {
            BasicPlayer player = new BasicPlayer();
            player.open(getClass().getResource("/com/img/intro.mp3"));
            player.play();
        } catch (BasicPlayerException ex) {
            ex.printStackTrace(System.err);
        }
    }
View Full Code Here

Examples of jenkins.util.VirtualFile.open()

        // get the build going, and wait until workflow pauses
        WorkflowRun b = j.assertBuildStatusSuccess(foo.scheduleBuild2(0).get());

        VirtualFile archivedFile = b.getArtifactManager().root().child("msg.out");
        assertTrue(archivedFile.exists());
        assertEquals("hello world\n",IOUtils.toString(archivedFile.open()));
    }

    @Test public void unarchiveDir() throws Exception {
        WorkflowJob p = j.jenkins.createProject(WorkflowJob.class, "p");
        p.setDefinition(new CpsFlowDefinition(StringUtils.join(Arrays.asList(
View Full Code Here

Examples of jfix.db4o.engine.PersistenceEngine.open()

   */
  public static void open(String database) {
    try {
      PersistenceEngine engine = (PersistenceEngine) Class.forName(
          persistenceEngineClassName).newInstance();
      engine.open(database);
      odb = new ObjectDatabase(engine);
      odb.open();
    } catch (Exception e) {
      e.printStackTrace();
      throw new RuntimeException(e);
View Full Code Here

Examples of jodd.mail.SendMailSession.open()

   * Opens email session.
   */
  protected SendMailSession openMailSession() {
    try {
      SendMailSession sendMailSession = smtpServer.createSession();
      sendMailSession.open();
      lastException = null;
      return sendMailSession;
    } catch (MailException mex) {
      lastException = mex;
      log.error("Unable to open email session", mex);
View Full Code Here

Examples of journal.io.api.Journal.open()

    @Test
    public void test() throws IOException {
        Journal journal = new Journal();
        journal.setDirectory(ISSUE55_DIR);
        journal.open();
        journal.close();
    }
}
View Full Code Here

Examples of journal.io.api.JournalBuilder.open()

        JournalBuilder builder = JournalBuilder.of(JOURNAL_DIR)
                .setChecksum(true)
                .setMaxFileLength(1024 * 1024)
                .setMaxWriteBatchSize(1024 * 10);
        // Open the journal:
        Journal journal = builder.open();

        // Write to the journal:
        int iterations = 1000;
        for (int i = 0; i < iterations; i++) {
            Journal.WriteType writeType = i % 2 == 0 ? Journal.WriteType.SYNC : Journal.WriteType.ASYNC;
View Full Code Here

Examples of jpos.CashDrawer.open()

           
            //cashDrawer.open("TSP700-cashdrawer-windows-usb");             // TSP700 cashDrawer - windows - usb
            //cashDrawer.open("TSP700-cashdrawer-windows-serial");          // TSP700 cashDrawer - windows - serial
            //cashDrawer.open("TSP700-cashdrawer-windows-parallel");        // TSP700 cashDrawer - windows - parallel
           
            cashDrawer.open("TSP700-cashdrawer-mac-usb");                 // TSP700 cashDrawer - mac - usb
           
            //cashDrawer.open("TSP700-cashdrawer-ethernet");                // TSP700 cashDrawer - ethernet
           
            // claim exclsive usage of the cashDrawer object
            cashDrawer.claim(1);
View Full Code Here

Examples of jpos.POSPrinter.open()

            //printer.open("TSP700-linux-parallel");          // TSP700 printer - linux - parallel
           
            //printer.open("TSP700-windows-usb");             // TSP700 printer - windows - usb
            //printer.open("TSP700-windows-serial");          // TSP700 printer - windows - serial
           // printer.open("TSP700-windows-parallel");        // TSP700 printer - windows - parallel
            printer.open("SP500-tearbar-windows-parallel");        // TSP700 printer - windows - parallel
            //printer.open("TSP700-mac-usb");                 // TSP700 printer - mac - usb

            //printer.open("TSP700-ethernet");                  // TSP700 printer - ethernet
           
            // claim exclsive usage of the printer object
View Full Code Here

Examples of kdu_jni.Jp2_family_src.Open()

    Kdu_compressed_source kduIn = null;
    Jp2_family_src jp2_family_in = new Jp2_family_src();
    Jp2_locator loc = new Jp2_locator();

    try {
      jp2_family_in.Open(r.getImageFile(), true);
      inputSource.Open(jp2_family_in, loc);
      inputSource.Read_header();
      kduIn = inputSource;
      Kdu_codestream codestream = new Kdu_codestream();
      codestream.Create(kduIn);
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.