Well, the FileReader is reading into a String and then it is converted to a byte array using getBytes(). I know, its weird, but I'm not the original author of this code and its my job to "fix" it.
On 12/1/05, J.Pietschmann <[EMAIL PROTECTED]> wrote: > Craig McDaniel wrote: > > However, > > when I create a FileReader for this same File ("results" in the code > > above), and do file.getEncoding(), it prints "ASCII". > > A plain file reader doesn't know it's reading XML, and always uses > the platform's default encoding. > > > Again, this prints "Encoding for /tmp/quarterly40215.xml: ASCII". At > > this point, the reader is used to read the file into a byte array. > > Then it is wrapped in a ByteArrayInput stream and fed to the FOP > > Driver. Are we any closer? > > You can't use a FileReader to read into a byte array. You can't > wrap a ByteArrayInputStream around a FileReader either. You surely > mean something else? > > J.Pietschmann > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Craig McDaniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]