|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.resource.tool.Lsr
public class Lsr
This class creates the output of 'ls -R'.
With the method addexcludeDir() it is possible, to add directories, which are excluded from the ls-R list.
With the method addexcludeRegExp() it is possible, to add a RegExp, which are excluded an entry in each directory.
Files starting with a '.' are ignored!
| Constructor Summary | |
|---|---|
Lsr(java.io.File theBasedirectory)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
addExcludeDir(java.lang.String name)
Add a directory in the exclude list. |
void |
addExcludeRegExp(java.lang.String name)
Add a RegExp in the exclude list. |
static void |
main(java.lang.String[] args)
main. |
void |
printLsr(java.io.PrintStream printStream)
Print the ls-R-information to the printStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lsr(java.io.File theBasedirectory)
theBasedirectory - The base directory for searching| Method Detail |
|---|
public void addExcludeDir(java.lang.String name)
Only in the top directory!
name - The name of the directory.public void addExcludeRegExp(java.lang.String name)
name - The name of the directory.
public void printLsr(java.io.PrintStream printStream)
throws java.io.IOException
printStream - The result is written to the PrintStream.
java.io.IOException - if an io-error occurs.
public static void main(java.lang.String[] args)
throws java.io.IOException
args - The command line. -excludeDir xxx -excludeRegExp xxx
java.io.IOException - if an io-error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||