public void store ( final OutputStream out , final String comments , final String encoding ) throws IOException { lock . readLock ( ) . lock ( ) ; try { properties . store ( new OutputStreamWriter ( out , Charset . forName ( encoding ) ) , comments ) ; } finally { lock . readLock ( ) . unlock ( ) ; } }
Stores a properties - file by using the given comments and encoding .