+ * Writes the given text to the {@link #writer}.
+ *
+ * @param text
+ * The text to write
+ * @throws IOException
+ * if an I/O error occurs
+ */
+ private void write(String text) throws IOException {
+ writer.write(text);
+ writer.flush();
+ }
+
+ /**
+ * Writes the given line followed by an LF to the {@link #writer}.
+ *
+ * @param line
+ * The line to write
+ * @throws IOException
+ * if an I/O error occurs
+ */
+ private void writeLine(String line) throws IOException {
+ writer.write(line + "\n");
+ writer.flush();
+ }
+
+ /**