473,396 Members | 2,158 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,396 software developers and data experts.

What is Stream.. Input or Output what is the difference

77
Forgive me for this silly one. But for me it is essential.

Is an inputStream is a tool for reading the data.. or inputStream is a thing that contains the data to read ?

Thanks,
P.Jerald
Dec 7 '07 #1
4 1249
JosAH
11,448 Expert 8TB
Forgive me for this silly one. But for me it is essential.

Is an inputStream is a tool for reading the data.. or inputStream is a thing that contains the data to read ?

Thanks,
P.Jerald
It's an object from which you can read bytes; that's all you need to know. Sources
such as files or sockets or strings or whatever can give you an InputStream so
that you can read bytes from those sources.

kind regards,

Jos
Dec 7 '07 #2
pjerald
77
It's an object from which you can read bytes; that's all you need to know. Sources
such as files or sockets or strings or whatever can give you an InputStream so
that you can read bytes from those sources.

kind regards,

Jos
I just try to understand these things.. correct me..

OutputStream is an object to which we can write bytes; and Sinks such as files or sockets or strings or whatever can give us an outputStream so that we can write to those sinks.

Thanks,
P.Jerald
Dec 7 '07 #3
JosAH
11,448 Expert 8TB
I just try to understand these things.. correct me..

OutputStream is an object to which we can write bytes; and Sinks such as files or sockets or strings or whatever can give us an outputStream so that we can write to those sinks.

Thanks,
P.Jerald
Yep, correct; although I'd change 'String' to byte arrays (both for input and output;
my bad; sorry. Strings are about characters, Streams are about bytes).

kind regards,

Jos
Dec 7 '07 #4
BigDaddyLH
1,216 Expert 1GB
pjerald,

Are you aware of this I/O tutorial? It may clear some of your doubts:

http://java.sun.com/docs/books/tutorial/essential/io/index.html
Dec 7 '07 #5

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

Similar topics

2
by: Maria Gaitani | last post by:
Hi! I have made a client and a server which are supposed to communicate by sending java objects. They don't. I have managed to send an object from the client to the server. But continuing after...
16
by: Quick Function | last post by:
What does it mean: int (*a);
2
by: yee young han | last post by:
I need a fast data structure and algorithm like below condition. (1) this data structure contain only 10,000 data entry. (2) data structure's one entry is like below typedef struct _DataEntry_...
2
by: Steven T. Hatton | last post by:
I'm still not completely sure what's going on with C++ I/O regarding the extractors and inserters. The following document seems a bit inconsistent:...
23
by: herrcho | last post by:
What's the difference between STDIN and Keyboard buffer ? when i get char through scanf, i type in some characters and press enter, then, where do the characters go ? to STDIN or Keyboard...
9
by: kernelxu | last post by:
hi,everybody. I calling function setbuf() to change the characteristic of standsrd input buffer. some fragment of the progrem is: (DEV-C++2.9.9.2) #include <stdio.h> #include <stdlib.h> int...
2
by: Abhishek | last post by:
what are the STDUPDATE, STDERR, STDOUT and STDIN streams and how does one access these streams in C language. I am aware of the function fprintf(FILE *fp, char * format, char *s) which puts the...
4
by: Scott F. Brown | last post by:
Greetings all... I was playing around with compressing streams and came across a behavior that I do not understand. I create a stream (input) from the contents of a textbox. That stream is...
2
by: B. Williams | last post by:
I have an assignment for school to Overload the operators << and >and I have written the code, but I have a problem with the insertion string function. I can't get it to recognize the second of...
10
by: Chad | last post by:
Given: #include <stdio.h> #include <stdlib.h> #define MAXLINE 200 int main(void) { char buff;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.