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]