commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B. K. Oxley (binkley)" <bink...@alumni.rice.edu>
Subject [io] why synchronized for NullOutputStream
Date Wed, 09 Feb 2005 21:38:11 GMT
Why are some of the write methods in NullOutputStream synchronized?

Example:

     public synchronized void write(byte[] b, int off, int len) {
         //to /dev/null
     }



Cheers,
--binkley

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message