Object Oriented Software Engineering   View all facts   Glossary   Help
subject > component > module > Java module > Java class > stream class > filter
Next stream classInputStream    Upstream class    Previous stream classOutputStream   

filter comparison table
Subject is a kind of have example is an instance of wrap around contain allow
DataInputStream  filter Java primitive types such as int and doubleprogrammer to exchange more sophisticated types of data than simple bytes without having to worry about how to translate them into a byte stream
DataOutputStream  filter Java primitive types such as int and doublea programmer to exchange more sophisticated types of data than simple bytes without having to worry about how to translate them into a byte stream
object stream classfilter//creation
output = new ObjectOutputStream(clientSocket.getOutputStream());
//sending an object
output.writeObject(msg);
//receiving an object (in a loop)
msg = input.readObject();
 a binary streamdata associated with each object 

Next stream classInputStream    Upstream class    Previous stream classOutputStream