protected void init ( File file , String directory , String fileName , InfoLocationOptions option ) { super . init ( file , directory , fileName , option ) ; if ( ! this . errors . hasErrors ( ) ) { if ( ! "stg" . equals ( this . getFileExtension ( ) ) ) { this . errors . addError ( "file name must have '.stg' extension" ) ; this . reset ( ) ; } else { } } }
Initialize the file source with any parameters presented by the constructors .