Hello Chris, Thank you for pointing out the use of deprecated code in our examples. I've updated the user's guide in git master and republished the site.
Note that the site carries the snapshot version. HTH, Gary On Sat, Jan 4, 2025 at 2:58 AM Christopher Dodunski (Apache Tomcat) < chrisfromsquir...@christopher.net.nz> wrote: > Hi, > > Viewing the CSV using 'less' it appears that the BOM is at the beginning > of the file, as normal, not midway. I'm unsure, therefore, why the > error message points to line 6 of the CSV. > > Thanks for directing me to org.apache.commons.io.input.BOMInputStream. > It looks like the constructors for this class have since been > deprecated, so my current line of code: > > Reader in = new FileReader(crewList); > > May wind up something like: > > InputStream inputStream = new FileInputStream(crewList); > BOMInputStream bomInputStream = > BOMInputStream.builder().setInputStream(inputStream).get(); > Reader in = new InputStreamReader(bomInputStream); > > Kind regards, > > Chris. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > >