public override global::System.Object openInputStream(global::java.lang.Object connection) {
            if (connection is java.lang.String) {
                try {
                    StorageFolder store = getStore((java.lang.String)connection); //KnownFolders.CameraRoll
                    string file = nativePathStore((java.lang.String)connection);
                    Stream stream = Task.Run(() => store.OpenStreamForReadAsync(file)).ConfigureAwait(false).GetAwaiter().GetResult();

                    return new InputStreamProxy(stream);
                }
                catch (Exception e) {
                    java.io.FileNotFoundException ex = new global::java.io.FileNotFoundException();
                    ex.@this(toJava("FileNotFoundException - " + e.Message));
                    throw new global::org.xmlvm._nExceptionAdapter(ex);
                }
            }
            com.codename1.io.BufferedInputStream bo = new com.codename1.io.BufferedInputStream();
            bo.@this(new InputStreamProxy(((NetworkOperation)connection).response.GetResponseStream()));
            return bo;
        }
 public override global::System.Object openInputStream(global::java.lang.Object n1)
 {
     if (n1 is java.lang.String)
     {
         IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication();
         string file = nativePath((java.lang.String)n1);
         IsolatedStorageFileStream s = store.OpenFile(file, FileMode.Open);
         return new InputStreamProxy(s);
     }
     NetworkOperation n = (NetworkOperation)n1;
     com.codename1.io.BufferedInputStream bo = new com.codename1.io.BufferedInputStream();
     bo.@this(new InputStreamProxy(n.response.GetResponseStream()));
     return bo;
 }