3
Friends, I have a problem and I can’t identify the cause.
I have a property file here. I’m reading it normally but when will I get all his keys by the method Map.keySet()
not all keys are being returned.
input = new FileInputStream("config.properties");
// load a properties file
prop.load(input);
for (Object string : prop.keySet()) {
System.out.println(string.toString());
}
Output is not matching all file keys.
I performed another test by reading all lines of the file with FileReader
and I used a regular expression to separate [key, value].
I realized that the reading was performed correctly, and soon after, I assigned each key and value pair in a Map<String, String>
and I realized that the following lines are not being assigned in the map keys:
ArquivoSefipVisao.cabecalho.dataRecolhimentoPrevidenciaSocial
ArquivoSefipVisao.$COLECAO.listaCabecalhoEmpresa.informacaoAdicional.tipoInscricaoEmpresa
ArquivoSefipVisao.$COLECAO.listaCabecalhoEmpresa.informacaoAdicional.inscricaoEmpresa
ArquivoSefipVisao.$COLECAO.listaCabecalhoEmpresa.informacaoAdicional.receitaEventoDesportivoPatrocinio
ArquivoSefipVisao.$COLECAO.listaCabecalhoEmpresa.informacaoAdicional.indicativoOrigemReceita
ArquivoSefipVisao.$COLECAO.listaCabecalhoEmpresa.informacaoAdicional.recolhimentoDeCompetenciasAnterioresInss
ArquivoSefipVisao.$COLECAO.listaCabecalhoEmpresa.informacaoAdicional.recolhimentoDeCompetenciasAnterioresOutrasEntidades
tried the way I posted below?
– LeoCBS