Quantcast
Channel: The Developer's Info » Java 1.6
Browsing latest articles
Browse All 10 View Live

Using Filter Streams in Java

Filter input streams read data from a preexisting input stream such as a FileInputStream and have an opportunity to work with or change the data before it is delivered to the client program. Filter...

View Article



Using buffered streams in Java

Buffered input streams read more data than they initially need into a buffer (an internal array of bytes). When one of the stream’s read() methods is invoked, data is removed from the buffer rather...

View Article

Using PushBackInputStream in Java

The PushbackInputStream class provides a pushback buffer so a program can “unread” bytes. In other words, it can add bytes to the stream and then read them. This class allows to add data to the stream...

View Article

Multitargeting output streams in Java

I want to show how I implemented filter output stream that send data to multiple underlying streams. It is very easy. I need output stream for this import java.io.FilterOutputStream; import...

View Article

Using Data Streams in Java

Data streams read and write strings, integers, floating-point numbers, and other data. The DataInputStream and DataOutputStream classes read and write the primitive Java data types (boolean, int,...

View Article


Using Properties in Java

Java has great API for working with properties. In this post I am going to show example which shows how to work with properties with Properties class. In my work I very often use properties and xml...

View Article

Getting system environment variables in Java

I am going to demonstrate example which shows how to get environment variables from Java code import java.io.IOException; import java.util.Map; /** * This class shows how to get all environment...

View Article

Using system properties in Java

The System class maintains a Properties object that describes the configuration of the current working environment. System properties include information about the current user, the current version of...

View Article


Java SE Development Kit 6 Update 20 is available

You can download it from this link. Details you can find on Release Notes page. No related posts.

View Article


Using Sequence Input Stream in Java

In this post I am going to show you how to use SequenceInputStream in Java. A SequenceInputStream first reads all the bytes from the first stream in the sequence, then all the bytes from the second,...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images