Examples of match()


Examples of net.pms.formats.GIF.match()

    // Construct GIF information
    DLNAMediaInfo info = new DLNAMediaInfo();
    info.setContainer("gif");
    Format format = new GIF();
    format.match("test.gif");
    assertEquals("PS3 is compatible with GIF", true,
        conf.isCompatible(info, format));
  }

  /**
 

Examples of net.pms.formats.MP3.match()

    audio.getAudioProperties().setNumberOfChannels(2);
    List<DLNAMediaAudio> audioCodes = new ArrayList<>();
    audioCodes.add(audio);
    info.setAudioTracksList(audioCodes);
    Format format = new MP3();
    format.match("test.mp3");
    assertEquals("PS3 is compatible with MP3", true,
        conf.isCompatible(info, format));

    // Construct five channel MP3 that the PS3 does not support natively
    audio.getAudioProperties().setNumberOfChannels(5);

Examples of net.pms.formats.MPG.match()

    List<DLNAMediaAudio> audioCodes = new ArrayList<>();
    audioCodes.add(audio);
    info.setAudioTracksList(audioCodes);
    info.setCodecV("mp4");
    Format format = new MPG();
    format.match("test.avi");
    assertEquals("PS3 is compatible with MPG", true,
        conf.isCompatible(info, format));

    // Construct MPG with wmv codec that the PS3 does not support natively
    info.setCodecV("wmv");

Examples of net.pms.formats.PNG.match()

    // Construct JPG information
    DLNAMediaInfo info = new DLNAMediaInfo();
    info.setContainer("png");
    Format format = new PNG();
    format.match("test.png");
    assertEquals("PS3 is compatible with PNG", true,
        conf.isCompatible(info, format));
  }

  /**
 

Examples of net.pms.formats.TIF.match()

    // Construct JPG information
    DLNAMediaInfo info = new DLNAMediaInfo();
    info.setContainer("tiff");
    Format format = new TIF();
    format.match("test.tiff");
    assertEquals("PS3 is compatible with TIFF", true,
        conf.isCompatible(info, format));
  }

  /**
 

Examples of net.sourceforge.processdash.util.Perl5Util.match()

        if (text == null || text.length() == 0)
          return ImmutableDoubleData.FALSE;

        Perl5Util perl = PerlPool.get();
        try {
            if (perl.match(pattern, text))
                return ImmutableDoubleData.TRUE;
            else
                return ImmutableDoubleData.FALSE;

        } catch (Throwable t) {

Examples of npanday.vendor.VendorInfoMatchPolicy.match()

    }

    public void testCreateVendorNamePolicy()
    {
        VendorInfoMatchPolicy matchPolicy = matchPolicyFactory.createVendorNamePolicy( "MICROSOFT" );
        assertTrue( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MICROSOFT, "", "" ) ) );
        assertFalse( matchPolicy.match( VendorTestFactory.getVendorInfo( Vendor.MONO, "", "" ) ) );
    }

    public void testCreateVendorVersionPolicy()
    {

Examples of oi.thekraken.grok.api.Grok.match()

    BufferedReader br = new BufferedReader(new FileReader(LOG_FILE));
    String line;
    System.out.println("Starting test with linux messages log -- may take a while");
    while ((line = br.readLine()) != null) {
      Match gm = g.match(line);
      gm.captures();
      assertNotNull(gm.toJson());
      assertNotEquals("{\"Error\":\"Error\"}", gm.toJson());
    }
    br.close();

Examples of org.antlr.v4.runtime.atn.LexerATNSimulator.match()

      if ( hitEOF ) {
        tokenTypes.add("EOF");
        break;
      }
      int t = input.LA(1);
      ttype = interp.match(input, Lexer.DEFAULT_MODE);
      if ( ttype == Token.EOF ) {
        tokenTypes.add("EOF");
      }
      else {
        tokenTypes.add(lg.typeToTokenList.get(ttype));

Examples of org.antlr.v4.runtime.tree.pattern.ParseTreePattern.match()

    assertTrue(ok);

    ParseTree result = execParser(startRule, input, parserName, lexerName);

    ParseTreePattern p = getPattern(grammarName, pattern, startRule);
    ParseTreeMatch match = p.match(result);
    boolean matched = match.succeeded();
    if ( invertMatch ) assertFalse(matched);
    else assertTrue(matched);
    return match;
  }
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.