title: Working with Android InputStreams in native c code
body: <p>Can anyone give me a hint how to work with Android InputStream in native code.</p>
  
  <p>More specific example:
  Java code</p>
  
  <pre><code>public class SomeParser {
      public native ArrayList&lt;String&gt; parse(InputStream stream);
  }
  </code></pre>
  
  <p>I need to read InputStream in native and return matching patterns to Android Java code.
  <code>stream</code> is BufferedInputStream from <code>HttpRequest</code></p>