@Override
    public String getFormatName() throws IOException {
      // return default if called before setInput
      return input == null? myDefaultFormat.getName() : getInfo().getFormat().getName();
    }
@Override
    public String getFormatName()