BTW, the "References" link on the Cotta website is broken.
http://cotta.sourceforge.net/references.html
So is the link to the JavaDoc:
http://cotta.sourceforge.net/javadoc/
Anyway, here are a few questions. I don't think you
should just answer
these in e-mail... they should be answered in JavaDoc.
5) What's the difference between TDirectory.delete() and
TDirectory.deleteAll()?
6) What happens when I pass TDirectory.dir an absolute
path?
7) Why does ClassPath have a "closeResource()" method?
It doesn't have an
"open" method. When am I supposed to call it?
8) How do you use ControlledFileSystem? What is
"readOperationControl"
supposed to do?
And, finally, here's a couple of suggestions:
9) I don't think ClassPath is accurately named. We all
know what a
classpath is: it's a list of jar files and/or
directories. But ClassPath
doesn't take a *list* of jar files and/or directories,
it takes just *one*
jar file or directory. ClassPath, as far as I can tell,
is really more
like a ClassPathEntry. A ClassPath would be a list/array of
ClassPathEntry objects.
10) ClassPathLocator takes a Class in its constructor,
and it only has one
method, locate, which takes no arguments. Typically you
use it by
creating a ClassPathLocator, calling .locate on it, and
throwing it away.
That doesn't make very much sense. Instead, ClassPath
(or ClassPathEntry,
as I might rename it) should have an additional
constructor that takes a
Class.
Logged In: YES
user_id=611886
There one other point worth addressing:
3) TFile and TDirectory should extend java.io.File,
overriding every method.