#5 TSV

closed
nobody
None
5
2007-02-12
2007-02-12
Anonymous
No

I want to support TSV(Tab separate value) File.

Discussion

  • Paul Zepernick

    Paul Zepernick - 2007-02-12
    • status: open --> closed
     
  • Paul Zepernick

    Paul Zepernick - 2007-02-12

    Logged In: YES
    user_id=1028753
    Originator: NO

    This is already available. The delimiter and qualifier are passed into the parser.

    final PZParser pzparser = DefaultPZParserFactory.getInstance().newDelimitedParser(textFileObj,
    '\t', PZConstants.NO_QUALIFIER);
    final DataSet ds = pzparser.parse();

    OR

    final PZParser pzparser = DefaultPZParserFactory.getInstance().newDelimitedParser(textFileObj,
    '\t', '"');
    final DataSet ds = pzparser.parse();

    If the elements are qualified, or have the potential to be qualified by something.

    Thanks,

    Paul Zepernick

     

Log in to post a comment.