@Override public boolean supportsFile(final URL file) { try (DataFileStream<AvroSimpleFeatureCollection> ds = new DataFileStream<AvroSimpleFeatureCollection>( file.openStream(), new SpecificDatumReader<AvroSimpleFeatureCollection>( AvroSimpleFeatureCollection.getClassSchema()))) { if (ds.getHeader() != null) { return true; } } catch (final IOException e) { // just log as info as this may not have been intended to be read as // avro vector data LOGGER.info("Unable to read file as Avro vector data '" + file.getPath() + "'", e); } return false; }