Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to read HDA file with UCM methods.

970113Jul 30 2013 — edited Jul 31 2013

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

This post has been answered by 970113 on Jul 31 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2013
Added on Jul 30 2013
2 comments
634 views