This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to fetch the first data from similar datas? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "How to fetch the first data from similar datas?" Watch "How to fetch the first data from similar datas?" New topic
Author

How to fetch the first data from similar datas?

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi all,

When i run my java program, i am getting the hangup event as output like the following:


org.asteriskjava.manager.event.HangupEvent[dateReceived=Tue Jan 18 12:35:51 GMT+05:30 2011,privilege='call,all',causetxt='user busy',callerid='null',cause='16',state='null',calleridname='null',timestamp='null',uniqueid='1295334351.25',calleridnum='null',channel='busy',systemHashcode=32680410]

org.asteriskjava.manager.event.HangupEvent[dateReceived=Tue Jan 18 12:35:51 GMT+05:30 2011,privilege='call,all',causetxt='Bearer capability not available',callerid='null',cause='58',state='null',calleridname='null',timestamp='null',uniqueid='1295334351.21',calleridnum='null',channel='OutgoingSpoolFailed',systemHashcode=32680410]



Here i need to take the first hangup event. please assist me to do this.

Thanks.

Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
What do you mean by "take the first hangup event"? Is this a log file that you're parsing, and you somehow need to select some of the log records? If so, what is the logic that distinguishes "some records" from all others?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43935
    
  33
Moving discussion as too difficult for "beginning".
 
Have you checked out Aspose?
 
subject: How to fetch the first data from similar datas?
 
It's not a secret anymore!