I
Ian Pilcher
I have created a class which extends BufferedInputStream and allows me
to turn off the buffering functionality. I'm pretty new to Java
programming, and I'm a little uncomfortable mucking about with the
internals of one of the API classes -- even though I've done my best to
rely only on the documented behavior of BufferedInputStream.
I'm hoping someone with a little more experience will take a couple of
minutes to look over the code at
http://home.comcast.net/~i.pilcher/TempBufferedInputStream.java
and let me know if I've made any really glaring errors.
If anyone wants to compile the code, you'll also need
http://home.comcast.net/~i.pilcher/StreamNotBufferingException.java
I've taken the "brute force" approach of making every public method
synchronized; I'd be interesting in hearing if there are any places
where this may not be necessary.
Finally, if anyone has any suggestions for better (shorter) class names,
I'd love to hear them.
Thanks!
to turn off the buffering functionality. I'm pretty new to Java
programming, and I'm a little uncomfortable mucking about with the
internals of one of the API classes -- even though I've done my best to
rely only on the documented behavior of BufferedInputStream.
I'm hoping someone with a little more experience will take a couple of
minutes to look over the code at
http://home.comcast.net/~i.pilcher/TempBufferedInputStream.java
and let me know if I've made any really glaring errors.
If anyone wants to compile the code, you'll also need
http://home.comcast.net/~i.pilcher/StreamNotBufferingException.java
I've taken the "brute force" approach of making every public method
synchronized; I'd be interesting in hearing if there are any places
where this may not be necessary.
Finally, if anyone has any suggestions for better (shorter) class names,
I'd love to hear them.
Thanks!