Giter Club home page Giter Club logo

coffeepot-br-sintegra's Introduction

coffeepot-br-sintegra

Project to be used in Brazil to write file in accordance to local regulations.

Este projeto é um mapeamento de classes Java para formatação e gravação do arquivo texto no layout definido para o SINTEGRA.

Projeto baseado em Maven. Utilizando JDK 1.7

Dependência: coffeepot-bean-wr - https://github.com/jom76/coffeepot-bean-wr

Documentação técnica e layout: http://www.sefaz.es.gov.br/LegislacaoOnline/lpext.dll/InfobaseLegislacaoOnline/ricms%20-%20dec%201090-r/08%20-%20anexos/090-anexo%20xxxvi.htm?fn=document-frame.htm&f=templates&2.0

###Maven central

        <dependency>
            <groupId>com.github.jean-merelis</groupId>
            <artifactId>coffeepot-br-sintegra</artifactId>
            <version>1.0.1-RC1</version>         
        </dependency> 

Exemplo:

	//Criando o escritor
	Writer fw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), "ISO-8859-1"));       
	SintegraWriter sintegraWriter = new SintegraWriter(fw);
	
	//Objeto que contém a estrutura do arquivo
	Sintegra sintegra = new Sintegra();
	// informa os registros
	//sintegra.setRegistro...
	
	//após informar todos os registros, gerar os registros tipo 90
	sintegra.gerarRegistros90();
	
	//Escrever o objeto no arquivo
    sintegraWriter.write(sintegra);		

	sintegraWriter.flush();
    sintegraWriter.close();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.