All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.com.caucho.hessian.io.UUIDDeserializer Maven / Gradle / Ivy

There is a newer version: 3.2.13
Show newest version
package com.alibaba.com.caucho.hessian.io;

import java.io.IOException;
import java.util.UUID;

/**
 * Deserializing a uuid valued object
 **/
public class UUIDDeserializer extends AbstractDeserializer {

	@Override
	public Class getType() {
		return UUID.class;
	}

	@Override
	public Object readObject(AbstractHessianInput in) throws IOException {
		String uuidString = in.readString();
		return UUID.fromString(uuidString);
	}

	@Override
	public Object readObject(AbstractHessianInput in, String[] fieldNames) throws IOException {
		String uuidString = in.readString();
		return UUID.fromString(uuidString);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy