Android FileInputStream Read getCredentials(FileInputStream fis)

Here you can find the source of getCredentials(FileInputStream fis)

Description

get Credentials

Declaration

static String[] getCredentials(FileInputStream fis) 

Method Source Code

//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;
    }
}

Related

  1. fastStream(File file)
  2. readSomeDataFromFile(String path, byte[] data)