Code example for StreamCorruptedException

Methods: printStackTrace

0
			inputStream = new ObjectInputStream(fis);
			savedNames = (TreeMap<String, String>) inputStream.readObject();
			inputStream.close();
		} catch (StreamCorruptedException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
		return savedNames;
	} 
 
	public void saveNames(Map<String, String> savedNames) {
		this.savedNames = savedNames;
 
		FileOutputStream fos = null;
		try {