hey all,

this is somewhat offtopic, but it is for something that i'm working on for
collab.net that will probably get contributed back here eventually...

essentially, i'm doing a servlet based proxy that will allow you to easily
modify the headers and content going in and out through the proxy with regex
and stuff. it is a pretty cool hack that we need implemented.

anyway, what i need now is a simple method to read all the bytes from an
inputstream into a byte[]. the trick is that you don't know the length of
data coming in from the stream (and thus cannot pre-allocate the byte[]) AND
i want it to be a bit more efficient than simply reading a byte at a time
with the read() method.

someone have some code they want to send to me? :-)

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to