Could you change the methods read/write to accept the interfaces Reader/Writer instead the bufferred implementation.
This is better for who handle ConfigParser with string instead directly from files and avoid flush every times also if we are using not buffered writer.