473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help me to Understand java.io package..

77
I have many doubts regarding java.io package. let me list some..

1) Here we have reader and writer, And OutputStream and InputStream abstract classes. what is the difference between these terms 'reader' and 'inputStream'
2) i don have an idea when to use which classes.
3) if there is any thumb rule for the usage of these class.. do reply to this thread.

If my third question doesn't mean any thing sensible, please do ignore it.



Thanks,
P.Jerald
Nov 26 '07 #1
5 1241
JosAH
11,448 Expert 8TB
I have many doubts regarding java.io package. let me list some..

1) Here we have reader and writer, And OutputStream and InputStream abstract classes. what is the difference between these terms 'reader' and 'inputStream'
2) i don have an idea when to use which classes.
3) if there is any thumb rule for the usage of these class.. do reply to this thread.

If my third question doesn't mean any thing sensible, please do ignore it.



Thanks,
P.Jerald
Streams are simply byte based,i.e.they don't try to convert bytes to unicode strings
or anything. Readers and Writers are characters based and they do their best to
convert those low level bytes to unicode characterrs.

There are concrete subclasses for Streams, Readers and Writers available (see the
API docs) and the entire IO stuff is based on the Decorator/Wrapper pattern.

Basically you can use Streams for binary IO, Readers and Writers are just for
character based IO.

kind regards,

Jos
Nov 26 '07 #2
r035198x
13,262 8TB
I have many doubts regarding java.io package. let me list some..

1) Here we have reader and writer, And OutputStream and InputStream abstract classes. what is the difference between these terms 'reader' and 'inputStream'
2) i don have an idea when to use which classes.
3) if there is any thumb rule for the usage of these class.. do reply to this thread.

If my third question doesn't mean any thing sensible, please do ignore it.



Thanks,
P.Jerald
Sun's tutorial should be able to shed some light.
Nov 26 '07 #3
JosAH
11,448 Expert 8TB
Sun's tutorial should be able to shed some light.
r035198x, have a look what I did in the Java Articles section: we can refer to those
external links through that little article again.

kind regards,

Jos
Nov 26 '07 #4
r035198x
13,262 8TB
r035198x, have a look what I did in the Java Articles section: we can refer to those
external links through that little article again.

kind regards,

Jos
You must go into hiding quick. They're probably looking for you with their pink inflatable axes that go "beep"!
Nov 27 '07 #5
JosAH
11,448 Expert 8TB
You must go into hiding quick. They're probably looking for you with their pink inflatable axes that go "beep"!
But why? All I did was post a little article there with a funny title ...

kind regards,

Jos ;-)
Nov 27 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Allan Robertson | last post by:
Hello I've downloaded the Java SDK 1.4.0 from Sun's website in the hope to learning Java, however when I compile my *.java files this (at most times) works fine, however when I run the *.class...
0
by: Mario Rosario | last post by:
Hi, I am getting an error which I don't understand why. I have an object Item which I serialize within a servlet and send it across to an applet but I get this run time error...
0
by: news.dsl.pipex.com | last post by:
Greetings, I'm trying to find out how in the source you set the version/vendor/title information so that it can be read at runtime. All I've found is mention of ClassLoader in relation to...
3
by: Herman | last post by:
Hi everyone, I have a multiple file project for a class assignment. It consists of a class Point, then a class Polygon which uses the Point object, then a class Picture that uses the Polygon...
0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
7
by: dlarsson | last post by:
Okay folks, I thought I was doing something very, very simple, but I cannot seem to get this to work at all. Can anyone identify what I am doing wrong here-? _________________________________ ...
2
by: mia23 | last post by:
Hello, I am a java beginner and I need series help in solving this program; my assignment is due after 2 days and I can't understand this program . This is THE PROGRAM:  The ABC medical clinic...
1
by: oyster | last post by:
As you may know, there is no beautiful and free chart(not plot, you can find the examples at http://www.jfree.org/jfreechart, http://www.rmchart.com) module for python than runs on...
6
by: zaina | last post by:
hi everybody i am nwebie in this forum but i think it is useful for me and the member are helpful my project is about connecting client with the server to start exchanging messages between...
13
Steel546
by: Steel546 | last post by:
Let me begin, I am a college student in a basic programming class and I honestly have a tough time learning Java. I'm here because I have a lab I'm trying to do and it's like I have a hard time...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.