Friends, I have a problem and I can not identify the cause.
I have a properties file here . I'm reading it normally but when I'm going to get all its keys by Map.keySet()
method 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());
}
The output is not corresponding to all the keys in the file.
I performed another test reading all the lines of the file with FileReader
and I used a regular expression to separate [ key , value ].
I noticed that the reading was done correctly, and afterwards, I assigned each key and value pair to a Map<String, String>
and realized that the following lines are not being assigned to 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