This actor reads a URL and if the URL names a directory, it outputs
the name of each file or subdirectory contained in the directory.
If the URL names a file, then it outputs the name of that file.
<p>If the <i>repeat</i> flag is true, then the sequence of file
names is repeated indefinitely.
If the <i>refresh</i> flag is true, and the <i>repeat</i> flag is
true, then the directory is re-read before repeating the sequence of
files and subdirectories.
<p>If the <i>endsWith</i> String parameter is non-null and non-empty,
then only file names or subdirectories that end with the value
of the <i>endsWith</i> parameter are output.
<p>One alternative implementation would be that if the URL named a file,
then the actor would output the names of the files and subdirectories
in the directory that contains the file.
<br>Another alternative implementation would output the names of the
files and subdirectories in an array.
<br>An extension would be to include a filter parameter that could be
a regular expression that would allow us to filter the file names.
<br> Should this actor extend URLReader or SequenceActor?
Christopher Hylands
$Id: URLDirectoryReader.java 70402 2014-10-23 00:52:20Z cxh $
Ptolemy II 2.0
Red (liuj)
Red (liuj)
If non-null and non-empty, then only output file names and sub
directories that end with this String value.
The default value of this parameter is the empty String "".
Repeat after outputting all elements of the directory.
The default value of this parameter is a false BooleanToken.