private void buffer(String line) {
            buffer.append(String.format("%s%n", line));
        }
This method handles IOException that occurs when calling the append
method on the writer.
aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/ProfilesConfigFileWriter.java