Openable is a silly name, at least, if this is for an abstraction with the following primitives:
mkdir(s) length canRead canWrite exists isDirectory delete etcetera File is rather specifically for, well, files. The abstraction for resources is Input and OutputStream. A few APIs fail to understand this and want you to call them with a File object instead of the more appropriate InputStream/OutputStream, but most get it right (or offer both). Some new API to address a few painpoints of the File API is coming in Java7. (google for "more new io" java). -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
