Package com.esotericsoftware.kryo.serialize

Examples of com.esotericsoftware.kryo.serialize.ClassSerializer


     */
    public KryoSerDeser(ClassLoader classLoader) {
        kryo.setClassLoader(classLoader);
        kryo.setRegistrationOptional(true);

        kryo.register(Class.class, new ClassSerializer(kryo));
        // UUIDs don't have a no-arg constructor.
        kryo.register(java.util.UUID.class, new SimpleSerializer<java.util.UUID>() {
            @Override
            public java.util.UUID read(ByteBuffer buf) {
                return new java.util.UUID(buf.getLong(), buf.getLong());
View Full Code Here


     */
    public void initialize() {
        // Register types we know about and do not require external configuration
        kryo.register(ArrayList.class);
        kryo.register(BasicCredentialMetaData.class);
        kryo.register(Class.class, new ClassSerializer(kryo));
        kryo.register(Date.class, new DateSerializer());
        kryo.register(HardTimeoutExpirationPolicy.class);
        kryo.register(HashMap.class);
        kryo.register(HandlerResult.class);
        kryo.register(ImmutableAuthentication.class);
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryo.serialize.ClassSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.