I am trying to read HDA file from standard UCM java code and i find below code on one of forum.
But my problem is that when i pass the value to read its returns 'NULL' every time. any-one can help me.
public static void main(String[] args) {
//DataBinder dataBinder = null;
String dir = System.getenv("HDAFILE");
String file = "20130729_132245_931.hda";
DataSerializeUtils.setDataSerialize(new DataBinderSerializer());
//intradoc.resource.ResourceUtils.serializeDataBinder
try {
DataBinder dataBinder = ResourceUtils.readDataBinder(dir, file);
String str = dataBinder.getLocal("loadOrder");
System.out.println("loadOrder: " + str+ dir);
} catch (Exception e) {
System.out.println(e);
return;
}
}
Regards,
Deepak parmar