× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Dan Kimmel wrote:
Okay, I missed that you were originally trying to use the file with
Properties.load(). Properties.load() uses an InputStream but assumes
that the character encoding is ISO 8859-1. It assumes this because it
assumes the file was written by Properties.store() which writes
using an OutputStream with ISO 8859-1 encoding. EDTF will work with a
file in ISO 8859-1, but will create a new file in CCSID 37 by
default.

Yes ... the whole discussion started because my expectation of the IFSTextFileInputStream would do the necessary translations of the characters it reads so that they would be able to be used by the Property object to read a property file on the IFS.

This turned out to NOT be the case. The IFSTextFileInputStream class only implements the String read(int) method ... which isn't used by the Property.load() method.

I've added a read method that is passed a byte array and returns the length. My initial testing shows this to work fine now.

I've submitted the modification to the JT400 team.

As it happens, I just got a message from Jeff Lee (JT400 manager) and the modification will be included in the release after next (next release is imminent).

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.