package before;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.HashMap;
public class Test {
public void run() throws IOException, ClassNotFoundException {
HashMap<String, String> hm = new HashMap<String, String>();
String fileName = "g:\\xxx.ser";
FileInputStream fos = new FileInputStream(fileName);
ObjectInputStream oos = new ObjectInputStream(fos);
hm = (HashMap<String, String>) oos.readObject();
System.out.print("");
}
/**
* @param args
* @throws IOException
* @throws ClassNotFoundException
*/
public static void main(String[] args) throws IOException,
ClassNotFoundException {
// TODO Auto-generated method stub
Test t = new Test();
t.run();
}
}