org.elasticsearch.common.xcontent.smile
Class SmileXContent

java.lang.Object
  extended by org.elasticsearch.common.xcontent.smile.SmileXContent
All Implemented Interfaces:
XContent

public class SmileXContent
extends Object
implements XContent

A JSON based content implementation using Jackson.


Field Summary
static SmileXContent smileXContent
           
 
Method Summary
static XContentBuilder contentBuilder()
           
 XContentGenerator createGenerator(OutputStream os)
          Creates a new generator using the provided output stream.
 XContentGenerator createGenerator(Writer writer)
          Creates a new generator using the provided writer.
 XContentParser createParser(byte[] data)
          Creates a parser over the provided bytes.
 XContentParser createParser(byte[] data, int offset, int length)
          Creates a parser over the provided bytes.
 XContentParser createParser(BytesReference bytes)
          Creates a parser over the provided bytes.
 XContentParser createParser(InputStream is)
          Creates a parser over the provided input stream.
 XContentParser createParser(Reader reader)
          Creates a parser over the provided reader.
 XContentParser createParser(String content)
          Creates a parser over the provided string content.
 byte streamSeparator()
           
 XContentType type()
          The type this content handles and produces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smileXContent

public static final SmileXContent smileXContent
Method Detail

contentBuilder

public static XContentBuilder contentBuilder()
                                      throws IOException
Throws:
IOException

type

public XContentType type()
Description copied from interface: XContent
The type this content handles and produces.

Specified by:
type in interface XContent

streamSeparator

public byte streamSeparator()
Specified by:
streamSeparator in interface XContent

createGenerator

public XContentGenerator createGenerator(OutputStream os)
                                  throws IOException
Description copied from interface: XContent
Creates a new generator using the provided output stream.

Specified by:
createGenerator in interface XContent
Throws:
IOException

createGenerator

public XContentGenerator createGenerator(Writer writer)
                                  throws IOException
Description copied from interface: XContent
Creates a new generator using the provided writer.

Specified by:
createGenerator in interface XContent
Throws:
IOException

createParser

public XContentParser createParser(String content)
                            throws IOException
Description copied from interface: XContent
Creates a parser over the provided string content.

Specified by:
createParser in interface XContent
Throws:
IOException

createParser

public XContentParser createParser(InputStream is)
                            throws IOException
Description copied from interface: XContent
Creates a parser over the provided input stream.

Specified by:
createParser in interface XContent
Throws:
IOException

createParser

public XContentParser createParser(byte[] data)
                            throws IOException
Description copied from interface: XContent
Creates a parser over the provided bytes.

Specified by:
createParser in interface XContent
Throws:
IOException

createParser

public XContentParser createParser(byte[] data,
                                   int offset,
                                   int length)
                            throws IOException
Description copied from interface: XContent
Creates a parser over the provided bytes.

Specified by:
createParser in interface XContent
Throws:
IOException

createParser

public XContentParser createParser(BytesReference bytes)
                            throws IOException
Description copied from interface: XContent
Creates a parser over the provided bytes.

Specified by:
createParser in interface XContent
Throws:
IOException

createParser

public XContentParser createParser(Reader reader)
                            throws IOException
Description copied from interface: XContent
Creates a parser over the provided reader.

Specified by:
createParser in interface XContent
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.