java/ch/wlkl/wsh/Write.java

package ch.wlkl.wsh;

public interface Write<T> extends OpenClose {
    /**
     * write the next line.
     * fail if arg is null or not open for writing. How to fail is unspecified, a null pointer exception or a {@link Top#fail(String)} are common possibilities. 
     */
    void write(T arg);
    /**
     * write the contents of reader to the receiver.
     * reading of the reader may be delayed until the output is needed.
     * open and close reader as specified by opt. 
     * fail if arg is null or not properly opened. How to fail is unspecified, a null pointer exception or a {@link Top#fail(String)} are common possibilities. 
     */
    void writeAll(String opt, Read<T> r);
}