package com.ttj.utils;
import java.io.IOException;
import java.io.InputStream;
import android.content.Context;
import android.content.res.AssetManager;
public class AssetsHelper {
public static String getSort(Context context) {
String json = null;
AssetManager s = context.getAssets();
try {
InputStream is = s.open("sort_list.json");
byte[] buffer = new byte[is.available()];
is.read(buffer);
json = new String(buffer, "utf-8");
} catch (IOException e) {
e.printStackTrace();
}
return json;
}
}