posted 16 years ago
FileInputStream does not support mark().
You could find this out from the API documentation, although it's not super-obvious. Base class InputStream implements markSupported() to throw false and mark() to do nothing, so any subclass of InputStream that does not override markSupported() and mark() cannot support mark(). FileInputStream does not override them, so it cannot support mark().
BufferedInputStream does support mark(). Wrap your FileInputStream in one.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.