public abstract class IndexLocation
extends java.lang.Object
IndexLocation
This is an abstract class to allow different implementation for a jar entry and a file
on the disk. Some of these functions could mean different for a jar entry or a file| Modifier and Type | Field and Description |
|---|---|
protected boolean |
participantIndex
Set to true if this index location is of an index file specified
by a participant through
SearchParticipant.scheduleDocumentIndexing(org.aspectj.org.eclipse.jdt.core.search.SearchDocument, IPath) |
| Modifier | Constructor and Description |
|---|---|
protected |
IndexLocation(java.io.File file) |
|
IndexLocation(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any open streams.
|
static IndexLocation |
createIndexLocation(java.net.URL url) |
abstract boolean |
createNewFile()
Creates a new file for the given index location
|
abstract boolean |
delete() |
abstract boolean |
exists() |
abstract java.lang.String |
fileName() |
abstract java.lang.String |
getCanonicalFilePath() |
abstract java.io.File |
getIndexFile() |
java.net.URL |
getUrl() |
int |
hashCode() |
boolean |
isParticipantIndex() |
abstract long |
lastModified() |
abstract long |
length() |
abstract boolean |
startsWith(IPath path) |
java.lang.String |
toString() |
protected boolean participantIndex
SearchParticipant.scheduleDocumentIndexing(org.aspectj.org.eclipse.jdt.core.search.SearchDocument, IPath)protected IndexLocation(java.io.File file)
public IndexLocation(java.net.URL url)
public static IndexLocation createIndexLocation(java.net.URL url)
public void close()
public abstract boolean createNewFile()
throws java.io.IOException
java.io.IOExceptionpublic abstract boolean delete()
public abstract boolean exists()
public abstract java.lang.String fileName()
public abstract java.lang.String getCanonicalFilePath()
public abstract java.io.File getIndexFile()
public java.net.URL getUrl()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isParticipantIndex()
public abstract long lastModified()
public abstract long length()
public abstract boolean startsWith(IPath path)
public java.lang.String toString()
toString in class java.lang.Object