Services | Updates | Contact
Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML
Search All Tutorials
Top Search: Loan Struts Open Source
Web Hosting Glossary
Web Hosting Glossary, Our hosting directory provides you the most comprehensive web hosting glossary.
 
XML Attributes
XML elements can have attributes in the start tag, just like HTML. Attributes are used to provide additional information
 
More Tutorials...

Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML

 
 
Java
Comments
 
 

 

Java I/0 Examples

                         

  1. What is Java I/O?
    The Java I/O means Java Input/Output. It is provided by the java.io package. This package has an InputStream and OutputStream. Java InputStream is defined for reading the stream, byte stream and array of byte stream.
  2. Classes and Interfaces of the I/O Streams
    The following listing of classes provided by the java.io package shown in the given table.
       
  3. Reading Text from the Standard Input 
    Java provides the standard I/O facilities for reading text through either from the file or from the keyboard on command line. This program illustrates how to use standard input to read the user input.
  4. Working With the Files
    The File class deals with the machine dependent files in a machine-independent manner i.e. it is easier to write platform-independent code that examines and manipulates files using the File class. This class is available in the java.lang package.

  5. Working with a Directory
    In the section, you will learn how a directory is created. Apart from this, you will also be aware from some manipulations that are performed 
    on a directory.

  6. Filter I/O Streams
    Like I/O streams, Filter streams are also used to manipulate the data reading from an underlying stream.. Apart from this,
    it allows the user to make a chain using multiple input stream so that, the operations that are to be applied on this chain, may create a combine effects on several filters. 
  7. Overview of I/O Data Streams
    Data streams are filtered streams that perform binary I/O operation on primitive data type values ( boolean, char, byte, short, int, long, etc.) as well as on String values. If you need to work with data that is not represented as bytes or characters then you can use Data Streams.
  8. Using a Random Access File
    n this section, you will learn about the Random Access File class provided by java. io package. This is a class that allows you to read and write arbitrary bytes, text, and primitive Java data types from or to any specified location in a file. 

       
  9. Converting a Filename Path to a URL
    In this section, you will learn, how a Filename path is converted to a URL and vice versa . URL stands for Uniform Resource Locator.
                        
  10. Making Tokens of a Java Source Code
    In Java, The StreamTokenizer class is used for simple parsing of a Java source file into tokens. This class takes an input stream, breaks up the ASCII text in a file and parses it into "tokens". It allows the tokens to be read one at a time.
        
  11. Introduction to Encoding
    Java programs use Unicode text internally. It supports standard UTF-8 when reading and writing strings through the InputStreamReader and the OutputStreamWriter.
  12.  
  13. Serializing an Object
    Serialization
    is the process of saving an object in a storage medium (such as a file, or a memory buffer) or to transmit it over a network connection in binary form.
      
  14. Deserializing an Object
    The opposite operation of the serialization is called deserialization i.e. to extracting the data from a series of bytes is s known as deserialization
                                                                
  15. Delete file or Directory
    In this example we are discussing the deletion of a file or a directory by using a java program. We pass the file name or the directory name to which we want to delete.
                                                               
  16. Downloading and Viewing html source of a page i.e. running on the server
    This section illustrates you the procedure of viewing complete html code of a page i.e. running on the server.
                        
  17. Miscellaneous 

                         

Facing Programming Problem?
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

17 comments so far (post your own) View All Comments Latest 10 Comments:

hello i want the implementation of "key distribuion for collaborative application.
if possible some please send me code that i can possible to add to my project.

Thanks

Amit

Posted by amit on Friday, 04.25.08 @ 10:52am | #57833

Guys,

Who put their stupendous efforts to make such a beauitful site where we can get the information in a user friendly manner. I really thank for the people who is a part of this.

Regards,
Ravi

Posted by RaviKiran on Monday, 04.21.08 @ 13:46pm | #57393

it is very good easly understandable

Posted by s.amarnat .BE on Friday, 01.4.08 @ 18:23pm | #44514

good site for learners

Posted by kiran on Friday, 12.7.07 @ 15:40pm | #41529

This is such a preciouse documentation! I'm glad i've found it :)

Posted by teo on Wednesday, 10.10.07 @ 13:56pm | #33004

A very good Java IO tutorial

Posted by digvijay on Wednesday, 09.19.07 @ 15:36pm | #27842

This is a good site to upgrade the subject

Posted by harikrishnareddy.b on Monday, 05.28.07 @ 11:18am | #17509

Thanks for providing this site.....
In this i m not getting proper concept of Thread if it possible then provide best titorial on thread concept...Once agin thanks

Posted by KALPESH JAIN on Thursday, 05.17.07 @ 23:54pm | #16300

its an extrodinary website to learn java...
thankyou sir for providing this.....

Posted by anil on Thursday, 04.26.07 @ 11:42am | #14953

thanks for this i learnt alot from this website.

Posted by dino on Wednesday, 04.11.07 @ 08:38am | #13822

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.