protected final void setFileExtensions ( final String ... fileExtensions ) { if ( fileExtensions == null ) { this . fileExtensions = null ; } else { this . fileExtensions = new ArrayList < String > ( ) ; this . fileExtensions . addAll ( Arrays . asList ( fileExtensions ) ) ; } }
Sets the list of file extensions . If no list exists internally it will be created if necessary .