Commit 93cd87c2 by gechengyang

提交getLine方法

parent 3008fa43
......@@ -1545,6 +1545,26 @@ public class MdaUtils {
return true;
}
public static final String getLine(String block, int line) {
try {
if (block == null) {
return null;
}
BufferedReader br = new BufferedReader(new StringReader(block));
String _line;
for(int count = 0; (_line = br.readLine()) != null; ++count) {
if (count == line) {
return _line;
}
}
} catch (Exception var6) {
}
return null;
}
public static String getServerName() {
InetAddress addr = null;
String serverName = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment