org.eclipse.jetty.deploy.util
类 FileID

java.lang.Object
  继承者 org.eclipse.jetty.deploy.util.FileID

public class FileID
extends Object

Simple, yet surprisingly common utility methods for identifying various file types commonly seen and worked with in a deployment scenario.


构造方法摘要
FileID()
           
 
方法摘要
static boolean isWebArchive(File path)
          Is the path a Web Archive?
static boolean isWebArchiveFile(File path)
          Is the path a Web Archive File (not directory)
static boolean isXmlFile(File path)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FileID

public FileID()
方法详细信息

isWebArchive

public static boolean isWebArchive(File path)
Is the path a Web Archive?

参数:
path - the path to test.
返回:
True if a .war or .jar or exploded web directory
另请参见:
isWebArchiveFile(File)

isWebArchiveFile

public static boolean isWebArchiveFile(File path)
Is the path a Web Archive File (not directory)

参数:
path - the path to test.
返回:
True if a .war or .jar file.
另请参见:
isWebArchive(File)

isXmlFile

public static boolean isXmlFile(File path)


Copyright © 2013. All Rights Reserved.