Examples of find()


Examples of org.apache.fontbox.util.autodetect.FontFileFinder.find()

            LOG.trace("Will search the local system for fonts");
        }

        int count = 0;
        FontFileFinder fontFileFinder = new FontFileFinder();
        List<URI> fonts = fontFileFinder.find();
        for (URI font : fonts)
        {
            count++;
            File fontFile = new File(font);
            try
View Full Code Here

Examples of org.apache.fop.fonts.autodetect.FontFileFinder.find()

                    try {
                        File fontBase = FileUtils.toFile(new URL(fontBaseURL));
                        if (fontBase != null) {
                            //Can only use the font base URL if it's a file URL
                            addFontInfoListFromFileList(
                                    fontFileFinder.find(fontBase.getAbsolutePath()),
                                    fontInfoList,
                                    fontResolver,
                                    fontCache
                            );
                        }
View Full Code Here

Examples of org.apache.fop.fonts.autodetect.FontInfoFinder.find()

            List fontFileList, List fontInfoList, FontResolver resolver, FontCache fontCache) {
        for (Iterator iter = fontFileList.iterator(); iter.hasNext();) {
            File fontFile = (File)iter.next();
            // parse font to ascertain font info
            FontInfoFinder finder = new FontInfoFinder();
            EmbedFontInfo fontInfo = finder.find(fontFile, resolver, fontCache);
            if (fontInfo != null) {
                fontInfoList.add(fontInfo);               
            }
        }
    }
View Full Code Here

Examples of org.apache.geronimo.gshell.layout.model.GroupNode.find()

        String shell = (String) properties.get("shell");
        String[] aliases = properties.get("alias") != null ? properties.get("alias").toString().split(",") : new String[0];

        if (name.equals(shell))
        {
            Node n = gn.find(shell);
            MutableGroupNode g = new MutableGroupNode(shell);
            gn.add(g);
            register(command);
        }
        else
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.HostFileManager.EntrySet.find()

    if (listDeadNodes) {
      final EntrySet includedNodes = hostFileManager.getIncludes();
      final EntrySet excludedNodes = hostFileManager.getExcludes();
      for (Entry entry : includedNodes) {
        if ((foundNodes.find(entry) == null) &&
            (excludedNodes.find(entry) == null)) {
          // The remaining nodes are ones that are referenced by the hosts
          // files but that we do not know about, ie that we have never
          // head from. Eg. an entry that is no longer part of the cluster
          // or a bogus entry was given in the hosts files
          //
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.HostFileManager.MutableEntrySet.find()

    if (listDeadNodes) {
      final EntrySet includedNodes = hostFileManager.getIncludes();
      final EntrySet excludedNodes = hostFileManager.getExcludes();
      for (Entry entry : includedNodes) {
        if ((foundNodes.find(entry) == null) &&
            (excludedNodes.find(entry) == null)) {
          // The remaining nodes are ones that are referenced by the hosts
          // files but that we do not know about, ie that we have never
          // head from. Eg. an entry that is no longer part of the cluster
          // or a bogus entry was given in the hosts files
View Full Code Here

Examples of org.apache.hadoop.io.Text.find()

    return parseDocID(key);
  }
 
  public static Text parseDocID(Key key) {
    Text colq = key.getColumnQualifier();
    int firstZeroIndex = colq.find("\0");
    if (firstZeroIndex < 0) {
      throw new IllegalArgumentException("bad docid: " + key.toString());
    }
    int secondZeroIndex = colq.find("\0", firstZeroIndex + 1);
    if (secondZeroIndex < 0) {
View Full Code Here

Examples of org.apache.harmony.luni.tests.support.B.find()

    assertEquals("Wrong cached value",
        "resource", bundle.getString("property"));

    // Regression test for Harmony-3823
    B bb = new B();
    String s = bb.find("nonexistent");
    s = bb.find("name");
    assertEquals("Wrong property got", "Name", s);
       
        // Regression test for Harmony-5698
        try {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.memory.MemoryDocumentStore.find()

        mk1.runBackgroundOperations();
        mk2.runBackgroundOperations();
        mk3.runBackgroundOperations();

        NodeDocument doc = ds.find(NODES, Utils.getIdFromPath("/test"));
        assertNotNull(doc);
        Map<Revision, String> revs = doc.getLocalRevisions();
        assertEquals(3, revs.size());
        revs = doc.getValueMap("_revisions");
        assertEquals(3 * NodeDocument.NUM_REVS_THRESHOLD, revs.size());
View Full Code Here

Examples of org.apache.maven.artifact.repository.ArtifactRepository.find()

            // Check for the existence of the artifact in the specified local
            // ArtifactRepository. If it is present then simply return as the
            // request for resolution has been satisfied.
            // ----------------------------------------------------------------------

            artifact = localRepository.find( artifact );

            if ( artifact.isResolved() )
            {
                return;
            }
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.