S
Silas Snider
Dear List,
I am using a DigestInputStream to perform a digest function on
passwords that get stored in an arbitrary database. (I can't use a database
function to do the same thing, because the program is designed to work with
as many dbs as possible including text files)
Anyway, I am using a StringBufferInputStream to pass a string into the
DigestInputStream, when lo and behold, Eclipse tells me that the
StringBufferInputStream class is deprecated. The api says to use
StringReader instead, but DigestInputStream accepts only InputStreams as
input. Is there another digesting class that I didn't see that will do
strings? Or is there a way to change a Reader into an InputStream?
Thanks,
Silas Snider
I am using a DigestInputStream to perform a digest function on
passwords that get stored in an arbitrary database. (I can't use a database
function to do the same thing, because the program is designed to work with
as many dbs as possible including text files)
Anyway, I am using a StringBufferInputStream to pass a string into the
DigestInputStream, when lo and behold, Eclipse tells me that the
StringBufferInputStream class is deprecated. The api says to use
StringReader instead, but DigestInputStream accepts only InputStreams as
input. Is there another digesting class that I didn't see that will do
strings? Or is there a way to change a Reader into an InputStream?
Thanks,
Silas Snider