• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filter Streams

 
prasad bhn
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9064
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic