org.apache.hadoop.yarn.webapp.view
Class TextView
java.lang.Object
org.apache.hadoop.yarn.webapp.View
org.apache.hadoop.yarn.webapp.view.TextView
- All Implemented Interfaces:
- Params
- Direct Known Subclasses:
- HtmlBlock, HtmlPage, TextPage
public abstract class TextView
- extends View
| Fields inherited from class org.apache.hadoop.yarn.webapp.View |
LOG |
|
Method Summary |
void |
echo(Object... args)
Print strings as is (no newline, a la php echo). |
void |
puts(Object... args)
Print strings as a line (new line appended at the end, a la C/Tcl puts). |
PrintWriter |
writer()
|
| Methods inherited from class org.apache.hadoop.yarn.webapp.View |
$, $, context, cookies, error, getInstance, inDevMode, info, injector, moreParams, outputStream, prefix, render, render, request, response, root_url, root, set, setTitle, setTitle, status, url |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextView
protected TextView(View.ViewContext ctx,
String contentType)
writer
public PrintWriter writer()
- Overrides:
writer in class View
echo
public void echo(Object... args)
- Print strings as is (no newline, a la php echo).
- Parameters:
args - the strings to print
puts
public void puts(Object... args)
- Print strings as a line (new line appended at the end, a la C/Tcl puts).
- Parameters:
args - the strings to print
Copyright © 2012 Apache Software Foundation. All Rights Reserved.