public class Listing
extends java.lang.Object
Constructor and Description |
---|
Listing()
creates a listing with a 10 elements
|
Listing(int i)
creates a listing with a specified number of elements.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(java.lang.Object fileOrListing)
adds an element to the list.
|
java.lang.String[] |
convertToStrings()
Recurses through the Listing and returns an array of strings containing each element within the Listing.
|
java.lang.Object |
elementAt(int i) |
java.lang.String |
findAFile()
Finds the first available file i.e.
|
Listing |
justDirStructure()
A listing with all of the files removed, just the directory structure remains.
|
Listing |
justDirStructure(java.lang.String search)
A listing with all of the files removed, just the directory structure remains.
|
Listing |
justFileList()
A listing with all of the directories removed.
|
Listing |
justFileList(java.lang.String search)
A listing with all of the directories removed.
|
boolean |
matched(java.lang.String item,
java.lang.String matchStr)
matches the file to the given matching string.
|
Listing |
pickOutMatching(java.lang.String search)
A listing with all of the directories removed.
|
Listing |
recurseAndEdit(int mode,
java.lang.String s)
Recurses this list and returns and editted version i.e.
|
int |
size() |
java.lang.String |
toString() |
java.lang.String |
toString(boolean longFormat) |
java.lang.String[] |
toStrings(boolean longFormat) |
public Listing()
public Listing(int i)
public int size()
public void addElement(java.lang.Object fileOrListing)
public Listing justDirStructure()
public Listing justFileList()
public Listing justDirStructure(java.lang.String search)
public Listing justFileList(java.lang.String search)
public Listing pickOutMatching(java.lang.String search)
public java.lang.String findAFile()
public Listing recurseAndEdit(int mode, java.lang.String s)
public boolean matched(java.lang.String item, java.lang.String matchStr)
public java.lang.Object elementAt(int i)
public java.lang.String[] toStrings(boolean longFormat)
public java.lang.String[] convertToStrings()
public java.lang.String toString(boolean longFormat)
public java.lang.String toString()
toString
in class java.lang.Object