Code example for Writer

Methods: append, flush

0
			} 
		} 
		return sb.toString();
	} 
	private static void writePrompt(Writer writer) throws IOException {
		writer.append(PROMPT);
		writer.append('\n');
		writer.flush();
	} 
	private static void writeError(Writer writer, String message) throws IOException {
		writer.append(PREFIX_ERROR);
		writer.append(message);
		writer.append('\n');
		writer.flush();
	} 
	 
	/** 
	 * 文字列内の改行、ダブルクオート、カンマをエスケープします。 
	 * @param src 
	 * @return 
	 */