Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 30th, 2003, 01:03 PM
harp_ro5 harp_ro5 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 1 harp_ro5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
java IOStream speed for chars

I copied a text file using a FileInputStream and FileOutputStream
and then a FileWriter and a FileReader.When I timed the program,both with and without buffer streams,the Input/output stream took about a quarter of the time the Read/Writer took.

But the book I'm reading says that when dealing with characters you're supposed to use only FileReader and FileWriter.
Why is this so,even when using these is slower?

Also,in Lists and Sets,is there any way of resetting the iterator after you reach the end? I mean,is there anything like 'rewind'?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > java IOStream speed for chars


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT