Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.server.jaxrs.io
Class ObjectCodecService

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.io.ObjectCodecService

public class ObjectCodecService
extends Object

Author:
Bogdan Stefanescu

Nested Class Summary
static class ObjectCodecService.BooleanCodec
           
static class ObjectCodecService.CalendarCodec
           
static class ObjectCodecService.DateCodec
           
static class ObjectCodecService.NumberCodec
           
static class ObjectCodecService.StringCodec
           
 
Constructor Summary
ObjectCodecService()
           
 
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCodecService

public ObjectCodecService()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.