public class SingleFileCodeBase extends java.lang.Object implements IScannableCodeBase
ICodeBase.Discovered| Constructor and Description | 
|---|
| SingleFileCodeBase(ICodeBaseLocator codeBaseLocator,
                  java.lang.String fileName) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()This method should be called when done using the code base. | 
| boolean | containsSourceFiles()Return whether or not this code base contains any source files. | 
| ICodeBaseLocator | getCodeBaseLocator()Get the codebase locator describing the location of this codebase. | 
| ICodeBase.Discovered | getHowDiscovered()Return how this codebase was discovered. | 
| long | getLastModifiedTime()Get timestamp indicating the most recent time when any of the files in
 the codebase were modified. | 
| java.lang.String | getPathName()Get the filesystem pathname of this codebase. | 
| boolean | isApplicationCodeBase()Return whether or not this codebase is an application codebase. | 
| ICodeBaseIterator | iterator()Get an iterator over the resources in the this code base. | 
| ICodeBaseEntry | lookupResource(java.lang.String resourceName)Look up a resource in this code base. | 
| void | setApplicationCodeBase(boolean isAppCodeBase)Designate this code base as an application codebase. | 
| void | setHowDiscovered(ICodeBase.Discovered howDiscovered)Set how this codebase was discovered. | 
| void | setLastModifiedTime(long lastModifiedTime)Set timestamp indicating the most recent time when any of the files in
 the codebase were modified. | 
| java.lang.String | toString() | 
public SingleFileCodeBase(ICodeBaseLocator codeBaseLocator, java.lang.String fileName)
public java.lang.String toString()
toString in class java.lang.Objectpublic ICodeBaseLocator getCodeBaseLocator()
ICodeBasegetCodeBaseLocator in interface ICodeBasepublic boolean containsSourceFiles()
                            throws java.lang.InterruptedException
ICodeBasecontainsSourceFiles in interface ICodeBasejava.lang.InterruptedExceptionpublic ICodeBaseIterator iterator() throws java.lang.InterruptedException
IScannableCodeBaseiterator in interface IScannableCodeBasejava.lang.InterruptedExceptionpublic ICodeBaseEntry lookupResource(java.lang.String resourceName)
ICodeBaselookupResource in interface ICodeBaseresourceName - name of the resource to look uppublic void setApplicationCodeBase(boolean isAppCodeBase)
ICodeBasesetApplicationCodeBase in interface ICodeBaseisAppCodeBase - true if this is an application codebase, false if notpublic boolean isApplicationCodeBase()
ICodeBaseisApplicationCodeBase in interface ICodeBasepublic void setHowDiscovered(ICodeBase.Discovered howDiscovered)
ICodeBasesetHowDiscovered in interface ICodeBasehowDiscovered - one of the constants SPECIFIED, NESTED, IN_JAR_MANIFEST, or
            IN_SYSTEM_CLASSPATHpublic ICodeBase.Discovered getHowDiscovered()
ICodeBasegetHowDiscovered in interface ICodeBasepublic void setLastModifiedTime(long lastModifiedTime)
ICodeBasesetLastModifiedTime in interface ICodeBaselastModifiedTime - timestamp when any codebase files were most-recently modifiedpublic long getLastModifiedTime()
ICodeBasegetLastModifiedTime in interface ICodeBasepublic java.lang.String getPathName()
ICodeBasegetPathName in interface ICodeBaseSpotBugs is licensed under the LGPL.