cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA Mapping: read Imported Archive = CSV; Linebreaks?

Former Member
0 Kudos

Hi everybody,

in a JAVA-Mappign we import a CSV from the imported Archives.

I got to split the CSV(-String) into an array.

To my suprise there are no linebreaks "\n" int the csv where I wanted to split the CSV-String.

So at the moment I do not know which delimiter to chose to split the csv-String.

In hex-mode ich get the value 0D.

Any suggestions?

Regards Mario

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved,

i forgot to insert a linebreak when reading the imported CSV:

BufferedReader br = new BufferedReader(new InputStreamReader(infstream));

String strXSD_as_XML = "";

try {

while ((strLine = br.readLine()) != null) {

strXSD_as_XML = strXSD_as_XML + strLine+"\n";

}