what is the "filtering" concept in the filter streams of java like DataInput/DataOutput Streams and BufferedInput/Output Stream. can anybody explain the concept of "filtering" in the above streams.. TIA, - prasadbh.
Marilyn de Queiroz
posted 14 years ago
The basic idea of a data filter is that it takes in some type (like bytes) and transforms them to some other type (like characters) (Input Stream Filter) and vice-versa (Output Stream Filter).
In other words, the idea behind an InputStream filter is to provide a way to modify the data from an InputStream and pass it to another class by using the basic InputStream methods. You could create a filter that converted all lowercase characters to uppercase, for instance.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt