Code example for StringWriter

Methods: append

0
		locale = Locale.getDefault();
	} 
	 
	private class StringOutputStream extends ServletOutputStream { 
		public void write(int b) throws IOException {
			stringer.append((char)b);
		}  
	} 
	 
	public String getValue() { return stringer.toString(); }
	 
	public int getStatus() { return status; }
 
	public void addCookie(Cookie arg0) {
		// do nothing. 
	} 
 
	public void addDateHeader(String key, long time) {
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		addHeader(key, format.format(new Date(time)));
	}