When one of the read methods is passed an unsupported format (apart from MCP), the code throws an IllegalStateException with no message:
|
default: |
|
throw new IllegalStateException(); |
IllegalStateException isn't really appropriate here ("Signals that a method has been invoked at an illegal or inappropriate time."), and the user gets no useful information from the exception since it has no message either.