• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I/O is killing me !

 
Ivan Ivanoff
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
I/O is killing me !
How much of I/O we need to know ?
PrintWriter / PrintStream ? a must ?
Please, any advice will help me a lot .
System.out.print(“THANX!“ ;
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I personally would know the following, but I have not taken the test yet, so take this as what I am doing and not what may or may not get you past the exam.
File
FileInputStream
FileOutputStream
RandomAccessFile
DataInputStream
DataOutputStream
BufferedOutputStream
BufferedInputStream
OutputStreamWriter
InputStreamWriter
PrintWriter
PrintReader
PushbackInputStream
FileReader
FileWriter
Anything else that should be added to the list guys?
-Matt
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IO is typically one of those objective where you really need to write some code for each class. If you just read books and docs it's not gonna help you much. Write some code and you'll soon begin to know how IO works and what IO classes provide, etc.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
A knowledge of the whole I/O Hiearchy is required.
How are I/O classes related to each other.
Know everything about the File class. Also do not forget about FileDescriptor.
Hope this helps!
-Amish
Originally posted by Ivan Ivanoff:
Hi all ,
I/O is killing me !
How much of I/O we need to know ?
PrintWriter / PrintStream ? a must ?
Please, any advice will help me a lot .
System.out.print(“THANX!“ ;
 
Tosin Adedoyin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ivan
I agree with valentin . i felt the same way when i started on i/ o it looks to like it has so many subclasses and methods but i am getting a hang of it now code code code . play around with alot of the methods and see how it works and i think doing that sticks better than reading any text books
 
Ivan Ivanoff
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ANYBODY HAVE A GOOD I/O TUTORIALS/NOTES WITH CODE SAMPLES? PLEASE !
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to start by the Java tutorial:
http://java.sun.com/docs/books/tutorial/essential/io/index.html
 
Ivan Ivanoff
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANK YOU VALENTIN , I READ SUNS TUTORIAL 2 TIMES ... but they are not covering Readers / Writers - any other recomendations please
 
Ivan Ivanoff
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or may be I need to know only these suns objectives and nothing else - what do you think ? Do we need to know more i/o stuff?
thx
=============================================
Write code that uses objects of the file class to navigate a file system.
Write code that uses objects of the classes InputStreamReader and OutputStreamWriter to translate between Unicode and either platform default or ISO 8859-1 character encodings.
Distinguish between conditions under which platform default encoding conversion should be used and conditions under which a specific conversion should be used
Select valid constructor arguments for subclasses from a list of classes in the java.io.package.
Write appropriate code to read, write and update files using FileInputStream, FileOutputStream, and RandomAccessFile objects.
=============================================
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Distinguish between conditions under which platform default encoding conversion should be used and conditions under which a specific conversion should be used

I like to hear some thoughts on this topic.
-Matt
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It never hurts to know more than required
other tutorials:
http://www.cosc.brocku.ca/mentor/javaiotutorial.htm
http://www.jchq.net/tutorial/11_01Tut.htm (lots of links at the end)
http://www.artima.com/javaseminars/modules/IO/index.html
[ March 21, 2002: Message edited by: Valentin Crettaz ]
 
Tosin Adedoyin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i also found this site useful
http://www.ibiblio.org/javafaq/course/week10/index.html
also ibm has some freee online tutorials you can register and read these . hope this helps
[ March 21, 2002: Message edited by: Tosin Adedoyin ]
[ March 21, 2002: Message edited by: Tosin Adedoyin ]
 
Ivan Ivanoff
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANK YOU ALL !!!
 
Jamal Hasanov
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Privet, Vanya:-)
The most useful I/O resourse is Khalid Mugal's Book (Chapter 18): you can download it in PDF format.
I/O from Khalid Mugal's Book
BTW, you can find his mock exam.:-)
P.S. etot chapter men ochen pomoq...
Jamal
 
Uday Kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check out introduction (or 1st, cant recollect now) chapter in "Java I/O" book.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic