My query is whether System.getProperty("line.separator")
and "\\n"
for Android network operations are same. I mean to say. I will be getting line separated response from some server and so which is better to use System.getProperty("line.separator")
or "\\n"
?
reffred Carriage returns/line breaks with \\n in strings in Android but still not sure with network operations.
如果要获得行分隔响应,请使用BufferedReader.readLine()
读取每一行,然后使用System.getProperty("line.separator")
如果要将换行符插入String中。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.