}
OutputStreamWriter osw = null;
if (lineWriterListener == null) {
osw = new OutputStreamWriter(sos, encoding);
} else {
osw = new LineFilteredOutputStreamWriter(sos, encoding) {
@Override
public void onFirstLine(Writer writer) throws IOException {
lineWriterListener.onFirstLine(writer);
}