org.neo4j.server.rest.repr.formats
Class StreamingJsonFormat.StreamingRepresentationFormat
java.lang.Object
org.neo4j.server.rest.repr.RepresentationFormat
org.neo4j.server.rest.repr.formats.StreamingJsonFormat.StreamingRepresentationFormat
- All Implemented Interfaces:
- org.neo4j.server.rest.repr.InputFormat
- Enclosing class:
- StreamingJsonFormat
public static class StreamingJsonFormat.StreamingRepresentationFormat
- extends org.neo4j.server.rest.repr.RepresentationFormat
| Methods inherited from class org.neo4j.server.rest.repr.RepresentationFormat |
convertBoolean, convertByte, convertCharacter, convertDouble, convertFloat, convertInteger, convertLong, convertNode, convertRelationship, convertShort, convertString, convertURI, getNode, getNode, getRelationship, readParameterList, toString |
StreamingJsonFormat.StreamingRepresentationFormat
public StreamingJsonFormat.StreamingRepresentationFormat(org.codehaus.jackson.JsonGenerator g,
org.neo4j.server.rest.repr.InputFormat inputFormat)
usePrettyPrinter
public StreamingJsonFormat.StreamingRepresentationFormat usePrettyPrinter()
serializeValue
protected String serializeValue(String type,
Object value)
- Specified by:
serializeValue in class org.neo4j.server.rest.repr.RepresentationFormat
serializeList
protected org.neo4j.server.rest.repr.ListWriter serializeList(String type)
- Specified by:
serializeList in class org.neo4j.server.rest.repr.RepresentationFormat
serializeMapping
public 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.ListWriter serializer)
- Specified by:
complete 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
readValue
public Object readValue(String input)
throws org.neo4j.server.rest.repr.BadInputException
- Throws:
org.neo4j.server.rest.repr.BadInputException
readMap
public Map<String,Object> readMap(String input,
String... requiredKeys)
throws org.neo4j.server.rest.repr.BadInputException
- Throws:
org.neo4j.server.rest.repr.BadInputException
readList
public List<Object> readList(String input)
throws org.neo4j.server.rest.repr.BadInputException
- Throws:
org.neo4j.server.rest.repr.BadInputException
readUri
public URI readUri(String input)
throws org.neo4j.server.rest.repr.BadInputException
- Throws:
org.neo4j.server.rest.repr.BadInputException
complete
public void complete()
- Overrides:
complete in class org.neo4j.server.rest.repr.RepresentationFormat
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.