title: How to get the content of an input stream in reverse order?
body: <p>I am using a txt file for my level desing. I use the below to take the contents and convert to string buffer, then iterate through the lines to generate my game objects.</p>
  
  <p>The the problem is that it reads from top down and so I have to design my levels upside down for them to be right way around.</p>
  
  <p>How can I change the stream to read the opposite way? Or write the lines to the String Builder the opposite way?</p>
  
  <pre><code> private static String convertStreamToString(InputStream is) {
  
          BufferedReader reader = new BufferedReader(new InputStreamReader(is));
          StringBuilder sb = new StringBuilder();
  
          String line = null;
          try {
              while ((line = reader.readLine()) != null) {
                  sb.append((line + "\n"));
              }
          } catch (IOException e) {
              Log.w("LOG", e.getMessage());
          } finally {
              try {
                  is.close();
              } catch (IOException e) {
                  Log.w("LOG", e.getMessage());
              }
          }
          return sb.toString();
  </code></pre>