org.neo4j.server.rest.repr.formats
Class StreamingJsonFormat

java.lang.Object
  extended by org.neo4j.server.rest.repr.RepresentationFormat
      extended by org.neo4j.server.rest.repr.formats.StreamingJsonFormat
All Implemented Interfaces:
org.neo4j.server.rest.repr.InputFormat, StreamingFormat

public class StreamingJsonFormat
extends org.neo4j.server.rest.repr.RepresentationFormat
implements StreamingFormat


Nested Class Summary
static class StreamingJsonFormat.StreamingRepresentationFormat
           
 
Field Summary
 
Fields inherited from interface org.neo4j.server.rest.repr.StreamingFormat
MEDIA_TYPE, STREAM_HEADER
 
Constructor Summary
StreamingJsonFormat()
           
 
Method Summary
protected  String complete(org.neo4j.server.rest.repr.ListWriter serializer)
           
protected  String complete(org.neo4j.server.rest.repr.MappingWriter serializer)
           
 List<Object> readList(String input)
           
 Map<String,Object> readMap(String input, String... requiredKeys)
           
 URI readUri(String input)
           
 Object readValue(String input)
           
protected  org.neo4j.server.rest.repr.ListWriter serializeList(String type)
           
protected  org.neo4j.server.rest.repr.MappingWriter serializeMapping(String type)
           
protected  String serializeValue(String type, Object value)
           
 StreamingJsonFormat.StreamingRepresentationFormat writeTo(OutputStream output)
           
 
Methods inherited from class org.neo4j.server.rest.repr.RepresentationFormat
complete, convertBoolean, convertByte, convertCharacter, convertDouble, convertFloat, convertInteger, convertLong, convertNode, convertRelationship, convertShort, convertString, convertURI, getNode, getNode, getRelationship, readParameterList, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamingJsonFormat

public StreamingJsonFormat()
Method Detail

writeTo

public StreamingJsonFormat.StreamingRepresentationFormat writeTo(OutputStream output)
Specified by:
writeTo in interface StreamingFormat

serializeList

protected org.neo4j.server.rest.repr.ListWriter serializeList(String type)
Specified by:
serializeList in class org.neo4j.server.rest.repr.RepresentationFormat

complete

protected String complete(org.neo4j.server.rest.repr.ListWriter serializer)
Specified by:
complete in class org.neo4j.server.rest.repr.RepresentationFormat

serializeMapping

protected org.neo4j.server.rest.repr.MappingWriter serializeMapping(String type)
Specified by:
serializeMapping in class org.neo4j.server.rest.repr.RepresentationFormat

complete

protected String complete(org.neo4j.server.rest.repr.MappingWriter serializer)
Specified by:
complete in class org.neo4j.server.rest.repr.RepresentationFormat

serializeValue

protected String serializeValue(String type,
                                Object value)
Specified by:
serializeValue in class org.neo4j.server.rest.repr.RepresentationFormat

readMap

public Map<String,Object> readMap(String input,
                                  String... requiredKeys)
                           throws org.neo4j.server.rest.repr.BadInputException
Specified by:
readMap in interface org.neo4j.server.rest.repr.InputFormat
Throws:
org.neo4j.server.rest.repr.BadInputException

readList

public List<Object> readList(String input)
Specified by:
readList in interface org.neo4j.server.rest.repr.InputFormat

readValue

public Object readValue(String input)
                 throws org.neo4j.server.rest.repr.BadInputException
Specified by:
readValue in interface org.neo4j.server.rest.repr.InputFormat
Throws:
org.neo4j.server.rest.repr.BadInputException

readUri

public URI readUri(String input)
            throws org.neo4j.server.rest.repr.BadInputException
Specified by:
readUri in interface org.neo4j.server.rest.repr.InputFormat
Throws:
org.neo4j.server.rest.repr.BadInputException


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.