Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

maximum data which can be read from....  RSS feed

 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone tell how much maximum data can a DataInputStream read.

thanks .....
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read datafiles using DataInputStream and BufferedReader that was upto 1GB in size. If you clear the old objects as you use them, you can read as much data as you want. If you want to read in and hold all the data at once, memory size is your limitation.

------------------
Hope This Helps
Carl Trusiak
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanX
Carl Trusiak,
i tried BufferedReader class to read data.
is there any way to increase the size of buffer in which we store data form server...
thanX
again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!