Re: Reading files

2008-07-12 Thread Al Maw
2008/7/11 David Nedrow <[EMAIL PROTECTED]>: > > Here's what I've have... > > IResourceStream resStream = new > PackageResourceStream(WicketApplication.class, "protocols.csv"); > InputStream inStream = resStream.getInputStream(); > InputStreamReader isr = new InputStreamReader(inStream); > List prot

Re: Reading files

2008-07-11 Thread David Nedrow
On Jul 9, 2008, at 6:52 AM, greeklinux wrote: Hello, I do not know if it helps: Can you read the CSV file as Resource, get the IResourceStream, then getInputStream() on IResourceStream and put this inputStream in a java.io.InputStreamReader? Yeah, that's basically where I am. I thought ma

Re: Reading files

2008-07-09 Thread greeklinux
way to > handle this type of activity? > > -David > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Readi

Reading files

2008-07-07 Thread David Nedrow
I have a third party package that requires a java.io.Reader (or descendent) as an input. I need to provide a Reader for a file locate in either WEB-INF (or possibly package sourced). This file is a CSV list of items that is used to initialize a database table. I just need to iterate over it