| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public PrintWriterGetHeader | |
| public String | Returns: the name of the wrapped writer or streamGets the name of the wrapped writer or stream |
| public PrintWriter | Returns: the print machineryGets a PrintWriter object for writing to this HeaderPrintWriter. |
| public void | |
| public void | |
| public void | |
| public void | printlnWithHeader(String
Message to print message)Puts out some setup info for the current write and the write(s) that will be put out next. |
| flush | back to summary |
|---|---|
public void flush()
| |
| getHeader | back to summary |
|---|---|
| public PrintWriterGetHeader getHeader() Return the header for the stream.
| |
| getName | back to summary |
|---|---|
| public String getName() Gets the name of the wrapped writer or stream
| |
| getPrintWriter | back to summary |
|---|---|
| public PrintWriter getPrintWriter() Gets a PrintWriter object for writing to this HeaderPrintWriter. Users may use the HeaderPrintWriter to access methods not included in this interface or to invoke methods or constructors which require a PrintWriter. Interleaving calls to a printWriter and its associated HeaderPrintWriter is not supported.
| |
| back to summary | |
|---|---|
| public void print(String message) Print a message.
| |
| println | back to summary |
|---|---|
| public void println(String message) Print a message with a newline.
| |
| println | back to summary |
|---|---|
| public void println(Object message) Print a message with a newline.
| |
| printlnWithHeader | back to summary |
|---|---|
| public void printlnWithHeader(String message) Puts out some setup info for the current write and the write(s) that will be put out next. It ends with a \n\r. All other writes to the stream use the PrintStream interface.
| |