org.aspectj.org.eclipse.jdt.internal.core.index
Class JarIndexLocation

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
      extended by org.aspectj.org.eclipse.jdt.internal.core.index.JarIndexLocation

public class JarIndexLocation
extends IndexLocation


Field Summary
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
participantIndex
 
Constructor Summary
JarIndexLocation(java.net.URL url, java.net.URL localUrl2)
           
 
Method Summary
 void close()
          Closes any open streams.
 boolean createNewFile()
          Creates a new file for the given index location
 boolean delete()
           
 boolean equals(java.lang.Object other)
           
 boolean exists()
           
 java.lang.String fileName()
           
 java.lang.String getCanonicalFilePath()
           
 java.io.File getIndexFile()
           
 long lastModified()
           
 long length()
           
 boolean startsWith(IPath path)
           
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.index.IndexLocation
createIndexLocation, getUrl, hashCode, isParticipantIndex, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JarIndexLocation

public JarIndexLocation(java.net.URL url,
                        java.net.URL localUrl2)
Method Detail

createNewFile

public boolean createNewFile()
                      throws java.io.IOException
Description copied from class: IndexLocation
Creates a new file for the given index location

Specified by:
createNewFile in class IndexLocation
Returns:
true if the file is created
Throws:
java.io.IOException

close

public void close()
Description copied from class: IndexLocation
Closes any open streams.

Overrides:
close in class IndexLocation

delete

public boolean delete()
Specified by:
delete in class IndexLocation

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

exists

public boolean exists()
Specified by:
exists in class IndexLocation

fileName

public java.lang.String fileName()
Specified by:
fileName in class IndexLocation

getIndexFile

public java.io.File getIndexFile()
Specified by:
getIndexFile in class IndexLocation

getCanonicalFilePath

public java.lang.String getCanonicalFilePath()
Specified by:
getCanonicalFilePath in class IndexLocation
Returns:
the canonical file path if the location is a file or null otherwise

lastModified

public long lastModified()
Specified by:
lastModified in class IndexLocation
Returns:
the last modified time if the location is a file or -1 otherwise

length

public long length()
Specified by:
length in class IndexLocation
Returns:
the length of the file if the location is a file or -1 otherwise

startsWith

public boolean startsWith(IPath path)
Specified by:
startsWith in class IndexLocation