static void consumeInputStream(final InputStream is) {
            STREAM_CONSUMER.execute(new Runnable() {
                @Override
                public void run() {

                    if (is == null) {
                        return;
                    }

                    final byte[] buffer = new byte[256];
                    try {
                        while ((is.read(buffer)) > 0) {
                            // To satisfy checkstyle rules.
                        }
                    } catch (IOException ignored) {
                        // Ignored.
                    } finally {
                        try {
                            is.close();
                        } catch (Exception ignored) {
                            // Ignored.
                        }
                    }
                }
            });
        }
InterpretDex2OatHelper
<p>
snippet from: Tinker's TinkerDexOptimizer.java (https://github.com/Tencent/tinker)
<p>
Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/replugin/utils/InterpretDex2OatHelper.java