Username:
Password:
Log me on automatically each visit
 

 
It is currently Fri May 24, 2013 10:55 am


Post a new topic Post a reply  [ 1 post ]   
Author Message
PostPosted: Mon Aug 30, 2010 6:42 pm 
Site Admin
User avatar

Joined: Sat Aug 02, 2008 8:00 am
Posts: 153
Do you ever wonder why we can read the data from different sources or form, such as in word, pdf, and other? How the computer works to reach the data from the source and translate or transform it into a form of data that users can read? It is because there is program in our computer to get input from the source of data by reading the sequence characters from attached stream. Well, we also can produce or type the output by writing the sequence of characters to the output stream.
Inputstream is one of the basic components of the Java,IO package. It is performing the reading task and performs it into the readable form to the computer users. For your information, java.io is the package which providing the input and output by data streams, serialization and file system, such as Datainput, externalizable, object output, and so on. It provides programming interface which is low degree. The functions of inputstream would be define or clarify the method or way to read bytes or array of bytes, mark the location, skip bytes, seek or search the available number of bytes to read, and reset the current position within the stream. It is automatically open when creating, but you can choose it to close manually. There are six classes under the inputstream which including the FileInputStream, PipedInputStream, FilterInputStream, ByteArrayInputStram, SequenceInputStream, and StringBufferInputStream.
Bufferedreader is one of the classes of the inputstream which can help to speed up the performance by buffering inputs, as it read a larger block at a time rather than read a character one by one. So it is faster in reading where it can read a single, array, and lines of data. It has 2 constructors, BufferedReder the reader inputstream, and BufferedReader the reader inputstream in bufsize. While for the first one, it creates buffered character stream in default size and the second one is creating in bufSize. Buffering provides the foundation required in order to support to move backward in the stream. It also provides a readLine to read the text in line, and skip method used to skip n numbers of character.
The input and output would be most basic or fundamental program or components needed in our computer or smart phone. The speed, stability and performance will be the criteria to judge or choose which one is the best for us. From the basic inputstream until the bufferedreader, it shows that people is always tend to move to the better level or seek improvement.

_________________
Muhammad Safwat
The Java Code Admin

Top
OfflineProfileSend private message
 
Display posts from previous:  Sort by  
Post a new topic Post a reply  [ 1 post ] 

Who is online

Registered users: No registered users

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to: