aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Marshal

Joined: Mar 22, 2005
Posts: 39541
    
  27
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?


Ping & DNS - updated with new look and Ping home screen widget
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36453
    
  15
Moving discussion as too difficult for "beginning".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to fetch the first data from similar datas?
 
Similar Threads
HTML GUI for java
substring problem
Date Generation
how to check the channel count
taking a particular data from a number of lines