org.apache.wicket.util.file.File.exists()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(155)

本文整理了Java中org.apache.wicket.util.file.File.exists()方法的一些代码示例,展示了File.exists()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。File.exists()方法的具体详情如下:
包路径:org.apache.wicket.util.file.File
类名称:File
方法名:exists

File.exists介绍

暂无

代码示例

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * 
 * @see org.apache.wicket.util.file.IResourceFinder#find(Class, String)
 */
public IResourceStream find(final Class<?> clazz, final String pathname)
{
  for (int i = 0; i < folders.size(); i++)
  {
    Folder folder = folders.get(i);
    final File file = new File(folder, pathname);
    if (file.exists())
    {
      return new FileResourceStream(file);
    }
  }
  return null;
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
 * 
 * @see org.apache.wicket.util.file.IResourceFinder#find(Class, String)
 */
public IResourceStream find(final Class clazz, final String pathname)
{
  for (int i = 0; i < folders.size(); i++)
  {
    Folder folder = (Folder)folders.get(i);
    final File file = new File(folder, pathname);
    if (file.exists())
    {
      return new FileResourceStream(file);
    }
  }
  return null;
}

代码示例来源:origin: apache/wicket

clzFile = new File(clzLocation);
  final File finalClzFile = clzFile;
  if (clzFile.exists())
if (clzFile != null && !clzFile.exists())

代码示例来源:origin: org.apache.wicket/wicket-core

clzFile = new File(clzLocation);
  final File finalClzFile = clzFile;
  if (clzFile.exists())
if (clzFile != null && !clzFile.exists())

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

clzFile = new File(clzLocation);
  final File finalClzFile = clzFile;
  if (clzFile.exists())
if (clzFile != null && !clzFile.exists())

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

clzFile = new File(clzLocation);
  final File finalClzFile = clzFile;
  if (clzFile.exists())
if (clzFile != null && !clzFile.exists())

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

if (file.exists())

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

if (file.exists())

代码示例来源:origin: org.apache.wicket/wicket-util

/**
 * Looks for {@code pathname} in the provided {@code folder}.
 *
 * @param clazz
 *      The class requesting the resource stream
 * @param pathname
 *      the path to the needed resource. Must be relative to {@code folder}
 * @see org.apache.wicket.util.file.IResourceFinder#find(Class, String)
 */
@Override
public IResourceStream find(final Class<?> clazz, final String pathname)
{
  final File file = new File(folder, pathname);
  if (file.exists())
  {
    return new FileResourceStream(file);
  }
  else
  {
    return null;
  }
}

代码示例来源:origin: apache/wicket

if (file.exists() == false)

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

if (file.exists() == false)

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

if (file.exists() == false)

代码示例来源:origin: org.apache.wicket/wicket-core

if (file.exists() == false)

代码示例来源:origin: org.wicketstuff/maven-support

private static IResourceStream getFileSysResourceStream(String prefix, String path)
  {
    File f=new File(prefix+path);
    if ((f.exists()) && (f.isFile()))
    {
      return new FileResourceStream(f);
    }
    else
    {
      _logger.debug("Could not get File: {}",f.getAbsolutePath());
    }
    return null;
  }
}

代码示例来源:origin: org.geoserver.community/gs-nsg-wfs-profile

@Override
  public void run() {
    while (true) {
      Map<String, Object> params = ic.getCurrentDataStoreParams();
      boolean condition =
          (dd.root().getPath() + "/nsg-profile/db/resultSets2")
                  .equals(
                      params.get(
                          JDBCDataStoreFactory
                              .DATABASE
                              .key))
              && dbDataFile.exists();
      if (condition) {
        done.countDown();
        break;
      }
      try {
        Thread.sleep(100);
      } catch (Exception e) {
      }
    }
  }
})

代码示例来源:origin: brix-cms/brix-cms

if (!cfg.exists()) {
  copyClassResourceToFile("/org/brixcms/demo/repository.xml", cfg);

代码示例来源:origin: org.geoserver.community/gs-nsg-wfs-profile

assertTrue(dbDataFile.exists());

相关文章