code: public static List<Emoji> loadEmojis(InputStream stream) throws IOException {
      JSONArray emojisJSON = new JSONArray(inputStreamToString(stream));
      List<Emoji> emojis = new ArrayList<Emoji>(emojisJSON.length());
      for (int i = 0; i < emojisJSON.length(); i++) {
        Emoji emoji = buildEmojiFromJSON(emojisJSON.getJSONObject(i));
        if (emoji != null) {
          emojis.add(emoji);
        }
      }
      return emojis;
    }
docs: Loads a JSONArray of emojis from an InputStream, parses it and returns the
  associated list of {@link com.vdurmont.emoji.Emoji}s
  
  @param stream the stream of the JSONArray
  
  @return the list of {@link com.vdurmont.emoji.Emoji}s
  @throws IOException if an error occurs while reading the stream or parsing
  the JSONArray