Android InputStream Read makeInputStream(Uri uri, ContentResolver cr)

Here you can find the source of makeInputStream(Uri uri, ContentResolver cr)

Description

make Input Stream

Declaration

private static ParcelFileDescriptor makeInputStream(Uri uri,
            ContentResolver cr) 

Method Source Code

//package com.java2s;

import java.io.IOException;
import android.content.ContentResolver;

import android.net.Uri;
import android.os.ParcelFileDescriptor;

public class Main {
    private static ParcelFileDescriptor makeInputStream(Uri uri,
            ContentResolver cr) {/*from ww  w  . j a  va2  s .  c o m*/
        try {
            return cr.openFileDescriptor(uri, "r");
        } catch (IOException ex) {
            return null;
        }
    }
}

Related

  1. readData(InputStream inSream, String charsetName)
  2. skip(InputStream stream, int numBytes)
  3. dealResponseResult(InputStream in)
  4. getInputStreamFromUrl_V9( Context paramContext, String paramString)
  5. getResponseBody(InputStream inputStream)
  6. outputFile(InputStream is, String targetPath, String filename)