Here you can find the source of loadAuthFile(String fileName)
public static String loadAuthFile(String fileName)
//package com.java2s; //License from project: LGPL import java.io.*; public class Main { public static String loadAuthFile(String fileName) { try {/* ww w .j a v a2 s. c o m*/ File file = new File(fileName); if (!file.exists()) return null; BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file))); StringBuffer buffer = new StringBuffer(); String line = null; while ((line = in.readLine()) != null) { buffer.append(line); } in.close(); return buffer.toString(); } catch (IOException e) { throw new RuntimeException(e); } } }