• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to detect end of line

 
pendse anagha
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I am trying ot read data from clob

Can somebody give me an example of how I would read clob such that I am able to detect end of line and thereby perform some logic for each line

Thank you ,
-anagha
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi anagha,

I guess you could just do clob.getInputStream() and then use one of the I/O reader classes which will allow you call readLine() method ...Won't that work?

e.g
BufferedReader br = new BufferedReader(new InputStreamReader(clob.getInputStream()));
br.readLine();

Regards
Maulin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!