com.alibaba.com.caucho.hessian.io.UUIDDeserializer Maven / Gradle / Ivy
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