Here you can find the source of getCredentials(FileInputStream fis)
static String[] getCredentials(FileInputStream fis)
//package com.java2s; import java.io.FileInputStream; import java.io.IOException; public class Main { static String[] getCredentials(FileInputStream fis) { byte[] inputData = new byte[50]; String[] data = null;/* ww w . ja v a 2 s .c om*/ int length = 0; try { length = fis.read(inputData, 0, 50); } catch (IOException e) { e.printStackTrace(); } if (length > 0) { String inputString = new String(inputData); data = inputString.split(";"); } return data; } }