ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <jon.sk...@peramon.com>
Subject RE: [VOTE] Promotion of FilterReaders proposal to main development tree.
Date Thu, 28 Feb 2002 15:11:23 GMT
> > * Why does LoadProperties parse the properties?  Why not use
> > java.util.Properties?
> 
> Thinking out aloud - How?  By converting inputreader
> to inputstream? hmm...

You could read the whole file into a String, then convert that to bytes with the ISO_8859_1
encoding needed by Properties, then create a ByteArrayInputStream. Alternatively, a ReaderInputStream
which converted any char over 255 to '?' shouldn't be too hard to write.

Jon

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message