Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
    }
}