org.nuxeo.ecm.automation.server.jaxrs.io
Class ObjectCodecService
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.io.ObjectCodecService
public class ObjectCodecService
- extends Object
- Author:
- Bogdan Stefanescu
Method Summary |
void |
addCodec(ObjectCodec<?> codec)
|
Map<Class<?>,ObjectCodec<?>> |
codecs()
|
Map<String,ObjectCodec<?>> |
codecsByName()
|
ObjectCodec<?> |
getCodec(Class<?> objectType)
|
ObjectCodec<?> |
getCodec(String name)
|
Collection<ObjectCodec<?>> |
getCodecs()
Get all codecs. |
static void |
main(String[] args)
|
Object |
read(InputStream in)
|
Object |
read(InputStream in,
ClassLoader cl)
|
Object |
read(org.codehaus.jackson.JsonParser jp,
ClassLoader cl)
|
Object |
read(String json)
|
Object |
read(String json,
ClassLoader cl)
|
void |
removeCodec(Class<?> objectType)
|
void |
removeCodec(String name)
|
String |
toString(Object object)
|
String |
toString(Object object,
boolean preetyPrint)
|
void |
write(org.codehaus.jackson.JsonGenerator jg,
Object object)
|
void |
write(OutputStream out,
Object object)
|
void |
write(OutputStream out,
Object object,
boolean prettyPint)
|
ObjectCodecService
public ObjectCodecService()
getCodecs
public Collection<ObjectCodec<?>> getCodecs()
- Get all codecs.
addCodec
public void addCodec(ObjectCodec<?> codec)
removeCodec
public void removeCodec(String name)
removeCodec
public void removeCodec(Class<?> objectType)
getCodec
public ObjectCodec<?> getCodec(Class<?> objectType)
getCodec
public ObjectCodec<?> getCodec(String name)
codecs
public Map<Class<?>,ObjectCodec<?>> codecs()
codecsByName
public Map<String,ObjectCodec<?>> codecsByName()
toString
public String toString(Object object)
throws IOException
- Throws:
IOException
toString
public String toString(Object object,
boolean preetyPrint)
throws IOException
- Throws:
IOException
write
public void write(OutputStream out,
Object object)
throws IOException
- Throws:
IOException
write
public void write(OutputStream out,
Object object,
boolean prettyPint)
throws IOException
- Throws:
IOException
write
public void write(org.codehaus.jackson.JsonGenerator jg,
Object object)
throws IOException
- Throws:
IOException
read
public Object read(String json)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
read
public Object read(String json,
ClassLoader cl)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
read
public Object read(InputStream in)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
read
public Object read(InputStream in,
ClassLoader cl)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
read
public Object read(org.codehaus.jackson.JsonParser jp,
ClassLoader cl)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.