com.alibaba.dubbo.common.serialize.support.json
Class FastJsonSerialization

java.lang.Object
  extended by com.alibaba.dubbo.common.serialize.support.json.FastJsonSerialization
All Implemented Interfaces:
Serialization

public class FastJsonSerialization
extends Object
implements Serialization

FastJsonSerialization

Author:
william.liangf

Constructor Summary
FastJsonSerialization()
           
 
Method Summary
 ObjectInput deserialize(URL url, InputStream input)
          create deserializer
 String getContentType()
          get content type
 byte getContentTypeId()
          get content type id
 ObjectOutput serialize(URL url, OutputStream output)
          create serializer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastJsonSerialization

public FastJsonSerialization()
Method Detail

getContentTypeId

public byte getContentTypeId()
Description copied from interface: Serialization
get content type id

Specified by:
getContentTypeId in interface Serialization
Returns:
content type id

getContentType

public String getContentType()
Description copied from interface: Serialization
get content type

Specified by:
getContentType in interface Serialization
Returns:
content type

serialize

public ObjectOutput serialize(URL url,
                              OutputStream output)
                       throws IOException
Description copied from interface: Serialization
create serializer

Specified by:
serialize in interface Serialization
Returns:
serializer
Throws:
IOException

deserialize

public ObjectInput deserialize(URL url,
                               InputStream input)
                        throws IOException
Description copied from interface: Serialization
create deserializer

Specified by:
deserialize in interface Serialization
Returns:
deserializer
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.