com.alibaba.dubbo.common.serialize.support.java
Class CompactedJavaSerialization

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

public class CompactedJavaSerialization
extends Object
implements Serialization

Author:
ding.lid

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

Constructor Detail

CompactedJavaSerialization

public CompactedJavaSerialization()
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 out)
                       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 is)
                        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.