Code example for StreamCorruptedException

Methods: toString

0
			try { 
				in2 = new ObjectInputStream( new ByteArrayInputStream(val.getBytes() ) );
				Object ret = in2.readObject();
				return ret;
			} catch (StreamCorruptedException e) {
				Log.e(TAG, e.toString());
				return null; 
			} catch (IOException e) {
				Log.e(TAG, e.getMessage());
				return null; 
			} catch (ClassNotFoundException e) {
				Log.e(TAG, e.getMessage());
				return null; 
			} 
		} 
		return null; 
 
		 
		 
	}