Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2007, 05:47 PM
Member
 
Join Date: Aug 2007
Posts: 1
tshaked is on a distinguished road
iteration on huge amount of files in a folder
Hi, I have a huge amount of files in a folder, and I need to do an iteration for each file in there. Using listFiles() method can throw a out of memory exeception in this case (also using FileFillter won't help). Any idea how to do it ?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2007, 08:08 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
If your memory can not get the list of file names as string array, then i dont think there is any way to do that if you ca not use FileFilters. May be if you can find a platform dependent command to get a portion of file names in an incremental way, you can run it from Java.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Java's compression classes to reduce the amount of data sent over a socket Java Tip java.net 0 04-07-2008 08:56 PM
Breaking huge text into multiple parts.Please help.. waNnY New To Java 2 02-18-2008 05:24 AM
add password to folder ismailsaleh AWT / Swing 1 01-08-2008 06:46 AM
Enum Iteration A.Russell New To Java 1 08-15-2007 01:17 PM
how to use class in upper folder osval New To Java 1 08-06-2007 09:55 PM


All times are GMT +3. The time now is 01:23 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org