Revision 1460
Added by Jing Tao over 21 years ago
src/edu/ucsb/nceas/metacat/DocumentImpl.java | ||
---|---|---|
1041 | 1041 |
// read a new line |
1042 | 1042 |
tmp = stringReader.readLine(); |
1043 | 1043 |
// append new line to data |
1044 |
data = data+tmp; |
|
1044 |
if (tmp != null) |
|
1045 |
{ |
|
1046 |
data = data+tmp; |
|
1047 |
} |
|
1045 | 1048 |
} |
1046 | 1049 |
|
1047 | 1050 |
} |
... | ... | |
1049 | 1052 |
{ |
1050 | 1053 |
throw new McdbException(e.getMessage()); |
1051 | 1054 |
} |
1055 |
MetaCatUtil.debugMessage("the inline data retrieve from file: "+data, 50); |
|
1052 | 1056 |
return data; |
1053 | 1057 |
} |
1054 | 1058 |
|
Also available in: Unified diff
Fixed a bug that when reading a inline file, there is null at the end.