Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.StreamCorruptedException; import android.content.Context; public class Main { public static ObjectInputStream readObjectStream(Context context, String name) throws StreamCorruptedException, IOException { InputStream s = context.openFileInput(name); // FIXME - add buffering? return new ObjectInputStream(s); } }