org.elasticsearch.common.xcontent.support
Class AbstractXContentGenerator

java.lang.Object
  extended by org.elasticsearch.common.xcontent.support.AbstractXContentGenerator
All Implemented Interfaces:
XContentGenerator

public abstract class AbstractXContentGenerator
extends java.lang.Object
implements XContentGenerator


Constructor Summary
AbstractXContentGenerator()
           
 
Method Summary
 void writeArrayFieldStart(java.lang.String fieldName)
           
 void writeBinaryField(java.lang.String fieldName, byte[] data)
           
 void writeBooleanField(java.lang.String fieldName, boolean value)
           
 void writeNullField(java.lang.String fieldName)
           
 void writeNumberField(java.lang.String fieldName, double value)
           
 void writeNumberField(java.lang.String fieldName, float value)
           
 void writeNumberField(java.lang.String fieldName, int value)
           
 void writeNumberField(java.lang.String fieldName, long value)
           
 void writeObjectFieldStart(java.lang.String fieldName)
           
 void writeStringField(java.lang.String fieldName, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.common.xcontent.XContentGenerator
close, contentType, copyCurrentStructure, flush, usePrettyPrint, writeArrayFieldStart, writeBinary, writeBinary, writeBinaryField, writeBoolean, writeBooleanField, writeEndArray, writeEndObject, writeFieldName, writeFieldName, writeNull, writeNullField, writeNumber, writeNumber, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectFieldStart, writeRawField, writeRawField, writeRawField, writeStartArray, writeStartObject, writeString, writeString, writeStringField
 

Constructor Detail

AbstractXContentGenerator

public AbstractXContentGenerator()
Method Detail

writeStringField

public void writeStringField(java.lang.String fieldName,
                             java.lang.String value)
                      throws java.io.IOException
Specified by:
writeStringField in interface XContentGenerator
Throws:
java.io.IOException

writeBooleanField

public void writeBooleanField(java.lang.String fieldName,
                              boolean value)
                       throws java.io.IOException
Specified by:
writeBooleanField in interface XContentGenerator
Throws:
java.io.IOException

writeNullField

public void writeNullField(java.lang.String fieldName)
                    throws java.io.IOException
Specified by:
writeNullField in interface XContentGenerator
Throws:
java.io.IOException

writeNumberField

public void writeNumberField(java.lang.String fieldName,
                             int value)
                      throws java.io.IOException
Specified by:
writeNumberField in interface XContentGenerator
Throws:
java.io.IOException

writeNumberField

public void writeNumberField(java.lang.String fieldName,
                             long value)
                      throws java.io.IOException
Specified by:
writeNumberField in interface XContentGenerator
Throws:
java.io.IOException

writeNumberField

public void writeNumberField(java.lang.String fieldName,
                             double value)
                      throws java.io.IOException
Specified by:
writeNumberField in interface XContentGenerator
Throws:
java.io.IOException

writeNumberField

public void writeNumberField(java.lang.String fieldName,
                             float value)
                      throws java.io.IOException
Specified by:
writeNumberField in interface XContentGenerator
Throws:
java.io.IOException

writeBinaryField

public void writeBinaryField(java.lang.String fieldName,
                             byte[] data)
                      throws java.io.IOException
Specified by:
writeBinaryField in interface XContentGenerator
Throws:
java.io.IOException

writeArrayFieldStart

public void writeArrayFieldStart(java.lang.String fieldName)
                          throws java.io.IOException
Specified by:
writeArrayFieldStart in interface XContentGenerator
Throws:
java.io.IOException

writeObjectFieldStart

public void writeObjectFieldStart(java.lang.String fieldName)
                           throws java.io.IOException
Specified by:
writeObjectFieldStart in interface XContentGenerator
Throws:
java.io.IOException