tecgraf.javautils.parsers.csv
Class CsvParser

java.lang.Object
  extended by tecgraf.javautils.parsers.Parser
      extended by tecgraf.javautils.parsers.csv.CsvParser

public class CsvParser
extends Parser

Parser CSV

Author:
Tecgraf/PUC-Rio

Constructor Summary
CsvParser()
          Construtor
 
Method Summary
 String[][] parse(InputStream inputStream, Charset charset)
          Faz o parser do stream, fechando o mesmo ao final.
 
Methods inherited from class tecgraf.javautils.parsers.Parser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvParser

public CsvParser()
Construtor

Method Detail

parse

public final String[][] parse(InputStream inputStream,
                              Charset charset)
                       throws IOException,
                              MalformedInputException
Faz o parser do stream, fechando o mesmo ao final.

Parameters:
inputStream - stream para leitura.
charset - charset a ser utilizado para o parser
Returns:
a matriz de textos lidos
Throws:
IOException - em caso de erro de I/O
MalformedInputException - em caso de erro de entrada com formato inválido.


Copyright © 2014 Tecgraf/PUC-Rio. All rights reserved.