package htmlflow;

import java.io.PrintStream;

public interface HtmlWriter<T>{
	/**
	 * Writes into an internal PrintStream the HTML content
	 * of this element with initial indentation of zero.
	 *
	 * @param model An optional object model that could be bind to this element.
	 */
	default void write(T model) {
		write(0, model);
	}
	/**
	 * Writes into an internal PrintStream the HTML content
	 * of this element.
	 * 
	 * @param depth The number of tabs indentation.
	 * @param model An optional object model that could be bind to this element. 
	 */
	void write(int depth, T model);
	
	/**
	 * Sets the current PrintStream.
	 * @param out
	 */
	HtmlWriter<T> setPrintStream(PrintStream out);
}

@@ -127,32 +127,219 @@
 he HTML content%0A
+%09 * of this element with zero indentation and without a%0A%09 * domain object.%0A%09 */%0A%09default void write() %7B%0A%09%09write(0, null);%0A%09%7D%0A%09/**%0A%09 * Writes into an internal PrintStream the HTML content%0A
 %09 * of this elem

Add a parameterless write() method