Package br.com.objectos.comuns.io.csv

Examples of br.com.objectos.comuns.io.csv.LocalDateCsvConverter


        .notQuoted()
        .encodedWith(Encoding.ISO_8859_1)
        .skipFirstLines(3)
        .withConverter(CaracteristicaSituacao.class, CaracteristicaSituacao.CONVERTER)
        .withConverter(Double.class, new DoubleConverter())
        .withConverter(LocalDate.class, new LocalDateCsvConverter("dd/MM/yyyy"))
        .withConverter(DATA_VENCIMENTO, new DataVencimento())
        .withConverter(DATA_SAIDA, new DataOpcional())
        .withConverter(SERIE, SerieConverter.INSTANCE)
        .withConverter(EMISSAO, EmissaoConverter.INSTANCE)
        .getLines();
View Full Code Here


    ParsedLines lines = file
        .onTabs()
        .encodedWith(Encoding.ISO_8859_1)
        .skipFirstLines(3)
        .withConverter(CaracteristicaSituacao.class, CaracteristicaSituacao.CONVERTER)
        .withConverter(LocalDate.class, new LocalDateCsvConverter("dd/MM/yyyy"))
        .withConverter(DATA_VENCIMENTO, new DataVencimento())
        .getLines();

    Iterable<Record> registros;
    registros = Iterables.transform(lines, new ToRecord());
View Full Code Here

        .notQuoted()
        .encodedWith(Encoding.ISO_8859_1)
        .skipFirstLines(3)
        .withConverter(CaracteristicaSituacao.class, CaracteristicaSituacao.CONVERTER)
        .withConverter(Double.class, new DoubleConverter())
        .withConverter(LocalDate.class, new LocalDateCsvConverter("dd/MM/yyyy"))
        .withConverter(DATA_VENCIMENTO, new DataVencimento())
        .withConverter(DATA_SAIDA, new DataOpcional())
        .withConverter(SERIE, SerieConverter.INSTANCE)
        .withConverter(EMISSAO, EmissaoConverter.INSTANCE)
        .getLines();
View Full Code Here

      String line = CharStreams.readFirstLine(CharStreams.newReaderSupplier(text));
      line = Strings.nullToEmpty(line);
      Matcher matcher = REGEX.matcher(line);
      if (matcher.find()) {
        String data = matcher.group(0);
        res = new LocalDateCsvConverter("dd/MM/yyyy").convert(data);
      }
    } catch (IOException e) {
    }

    return res;
View Full Code Here

        .notQuoted()
        .encodedWith(Encoding.ISO_8859_1)
        .skipFirstLines(3)
        .withConverter(CaracteristicaSituacao.class, CaracteristicaSituacao.CONVERTER)
        .withConverter(Double.class, new DoubleConverter())
        .withConverter(LocalDate.class, new LocalDateCsvConverter("dd/MM/yyyy"))
        .withConverter(DATA_VENCIMENTO, new DataVencimento())
        .withConverter(DATA_SAIDA, new DataOpcional())
        .getLines();

    Iterable<Record> registros;
View Full Code Here

      String line = Files.readFirstLine(file, Charsets.ISO_8859_1);
      line = Strings.nullToEmpty(line);
      Matcher matcher = REGEX.matcher(line);
      if (matcher.find()) {
        String data = matcher.group(0);
        res = new LocalDateCsvConverter("dd/MM/yyyy").convert(data);
      }
    } catch (IOException e) {
    }

    return res;
View Full Code Here

TOP

Related Classes of br.com.objectos.comuns.io.csv.LocalDateCsvConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.