public final class SyncDefaultRenderer extends Renderer
Modifier and Type | Class and Description |
---|---|
static class |
SyncDefaultRenderer.RenderingVisitor |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENCODING |
static String |
DEFAULT_MIMETYPE |
Constructor and Description |
---|
SyncDefaultRenderer() |
Modifier and Type | Method and Description |
---|---|
protected void |
emptyResult(com.yahoo.text.XMLWriter writer,
Result result) |
void |
endResult(com.yahoo.text.XMLWriter writer,
Result result) |
void |
error(com.yahoo.text.XMLWriter writer,
Result result) |
String |
getDefaultSummaryClass() |
String |
getEncoding() |
String |
getMimeType() |
void |
init() |
void |
queryContext(com.yahoo.text.XMLWriter writer,
QueryContext queryContext,
Query owner) |
void |
render(Writer writer,
Result result)
Renders this result
|
protected static void |
renderCoverageAttributes(Coverage coverage,
com.yahoo.text.XMLWriter writer) |
void |
renderHit(com.yahoo.text.XMLWriter writer,
Hit hit,
int hitno)
Renders this hit as xml.
|
static void |
renderMessageDefaultErrorHit(com.yahoo.text.XMLWriter writer,
ErrorMessage error) |
static boolean |
simpleRenderDefaultErrorHit(com.yahoo.text.XMLWriter writer,
ErrorHit defaultErrorHit) |
clone, getCharacterEncoding, getRequestedEncoding, render
public static final String DEFAULT_MIMETYPE
public static final String DEFAULT_ENCODING
public void init()
init
in class com.yahoo.processing.rendering.Renderer<Result>
public String getEncoding()
getEncoding
in class com.yahoo.processing.rendering.Renderer<Result>
public String getMimeType()
getMimeType
in class com.yahoo.processing.rendering.Renderer<Result>
public String getDefaultSummaryClass()
getDefaultSummaryClass
in class Renderer
public void render(Writer writer, Result result) throws IOException
render
in class Renderer
IOException
protected static void renderCoverageAttributes(Coverage coverage, com.yahoo.text.XMLWriter writer) throws IOException
IOException
public void endResult(com.yahoo.text.XMLWriter writer, Result result) throws IOException
IOException
public void error(com.yahoo.text.XMLWriter writer, Result result) throws IOException
IOException
protected void emptyResult(com.yahoo.text.XMLWriter writer, Result result) throws IOException
IOException
public void queryContext(com.yahoo.text.XMLWriter writer, QueryContext queryContext, Query owner) throws IOException
IOException
public void renderHit(com.yahoo.text.XMLWriter writer, Hit hit, int hitno) throws IOException
writer
- the XMLWriter to append this hit toIOException
- if rendering failspublic static boolean simpleRenderDefaultErrorHit(com.yahoo.text.XMLWriter writer, ErrorHit defaultErrorHit) throws IOException
IOException
public static void renderMessageDefaultErrorHit(com.yahoo.text.XMLWriter writer, ErrorMessage error) throws IOException
IOException
Copyright © 2018. All rights reserved.