Custom BufferedWriter implementation without newLine()