aspose file tools*
The moose likes Java in General and the fly likes How can i separate the output value 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 can i separate the output value" Watch "How can i separate the output value" New topic
Author

How can i separate the output value

R Sugan
Ranch Hand

Joined: Mar 13, 2009
Posts: 48
Hi,

I can able to get the output into one variable.But i need to separate the output.I have used regex in java and get the separate output.
But i did not able to get the anonter one value because the variable name as same.How to solve this problem?Please help to solve this
problem.

My code




This is my output..


LiveStatus:AsteriskChannel[id='1240469790.78',name='SIP/5104-094af5b0',callerId='"device" <5104>',state='UP',account='null',dateOfCreation=Thu Apr 23 12:25:23 IST 2009,dialedChannel=null,dialingChannel=null,linkedChannel=AsteriskChannel[id='1240469799.79',name='SIP/5103-0948bf58']]
Name:'SIP/5104-094af5b0'
Callerid:'"device" <5104>'
State:'UP'

LiveStatus:AsteriskChannel[id='1240469799.79',name='SIP/5103-0948bf58',callerId='<222>',state='UP',account='null',dateOfCreation=Thu Apr 23 12:27:28 IST 2009,dialedChannel=null,dialingChannel=null,linkedChannel=AsteriskChannel[id='1240469790.78',name='SIP/5104-094af5b0']]
Name:'SIP/5103-0948bf58'
Callerid:'<222>'
State:'UP'

I need to get the name of linkedChannel .How can i get it?Please help me?




Regards,
Suganya
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41861
    
  63
Is there any particular reason why "asteriskChannel.getLinkedChannel().getName()" shouldn't work?


Ping & DNS - my free Android networking tools app
R Sugan
Ranch Hand

Joined: Mar 13, 2009
Posts: 48
Hi,

Thanks for your reply.I got the output.



Regards,
Suganya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i separate the output value