| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclassUtils.pack.util.ClassPathIterator
public class ClassPathIterator
An iterator over a classpath declaration.
| Constructor Summary | |
|---|---|
| ClassPathIterator()Create a ClassPathIterator iterating on the system class path. | |
| ClassPathIterator(java.lang.String classpath)Create a ClassPathIterator iterating on the given class path. | |
| Method Summary | |
|---|---|
|  boolean | hasNext() | 
|  boolean | isDirectory()Returns whether the entry where the iterator is positioned is a JAR or not, regardless of its existence. | 
|  boolean | isDirectory(boolean checkExistence)Returns whether the entry where the iterator is positioned is a JAR or not | 
|  boolean | isJar()Returns whether the entry where the iterator is positioned is a JAR or not, regardless of its existence. | 
|  boolean | isJar(boolean checkExistence)Returns whether the entry where the iterator is positioned is a JAR or not | 
|  java.lang.Object | next()Return the next entry as a String | 
|  java.io.File | nextEntryFile()Return the next entry in the class path as a File | 
|  java.lang.String | nextEntryString()Return the next entry in the class path as a String | 
|  void | remove() | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ClassPathIterator(java.lang.String classpath)
classpath - string to iterate onpublic ClassPathIterator()
| Method Detail | 
|---|
public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()public java.lang.String nextEntryString()
public java.io.File nextEntryFile()
public void remove()
remove in interface java.util.IteratorIterator.remove()public boolean isJar(boolean checkExistence)
checkExistence - also checks if the JAR exists.public boolean isJar()
public boolean isDirectory(boolean checkExistence)
checkExistence - also checks if the JAR exists.public boolean isDirectory()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||