Skip to main content

Posts

Showing posts from January, 2016

Java InputOutput Types

Java InputOutput : Most of the application needs to process some input and then produce output to a network file or local file etc. There is a java package java.io which provides input and output through data streams , serialization and the file system. 
The package covers most of the input and output operations required but not the GUI I/O operations which are covered in Swing, JSP etc in Java enterprise. 
this package is primarily focused on input and output to files, network streams, internal memory buffers etc. However, the Java IO package does not contain classes to open network sockets which are necessary for network communication. For opening network sockets there is another networking package in java. 
Typical Java IO sources : FILE, Network IO, Streams Streams : Conceptually, a stream is a endless flow of data from where you can either read  or write . Streams in Java IO can be either byte based (reading and writing bytes) or character based (reading and wri...