ExampleApp/src/com/altinn/apps/fisher/models/UserProfile.java
/**
	 * Actual De-Marshaling done here
	 * @param dataBytes
	 */
Actual De-Marshaling done here
@param dataBytes
Actual De - Marshaling done here @param dataBytes
private void intData(byte[] dataBytes){
		if(dataBytes != null && dataBytes.length > 0){
			ByteArrayInputStream bis = new ByteArrayInputStream(dataBytes);
			DataInputStream dis = new DataInputStream(bis);
			try {
				mName = dis.readUTF();
				mTitle = dis.readUTF();
				mPhoneNumber = dis.readUTF();
				mEmail = dis.readUTF();
				mActiveUnitIndex = dis.readInt();
				int listCount = dis.readInt();
				for(int i = 0 ; i <listCount; i++ ){
					OrganisationObj org = new OrganisationObj();
					org.mName = dis.readUTF();
					org.mOrganizationNumber = dis.readUTF();
					org.mMessageLink = dis.readUTF();	
					org.mType = dis.readUTF();	
					mListUnits.add(org);
				}
			} catch (IOException e) {
				e.printStackTrace();
			}catch(NullPointerException npe){
			}
			finally{
				try {
					if(dis != null)
						dis.close();
				}catch (IOException e) {
					e.printStackTrace();
				}
				try {
					if(bis != null)
						bis.close();
				}catch (IOException e) {
					e.printStackTrace();
				}
			}
		}		
	}
private void intData ( byte [ ] dataBytes ) { if ( dataBytes != null && dataBytes . length > 0 ) { ByteArrayInputStream bis = new ByteArrayInputStream ( dataBytes ) ; DataInputStream dis = new DataInputStream ( bis ) ; try { mName = dis . readUTF ( ) ; mTitle = dis . readUTF ( ) ; mPhoneNumber = dis . readUTF ( ) ; mEmail = dis . readUTF ( ) ; mActiveUnitIndex = dis . readInt ( ) ; int listCount = dis . readInt ( ) ; for ( int i = 0 ; i < listCount ; i ++ ) { OrganisationObj org = new OrganisationObj ( ) ; org . mName = dis . readUTF ( ) ; org . mOrganizationNumber = dis . readUTF ( ) ; org . mMessageLink = dis . readUTF ( ) ; org . mType = dis . readUTF ( ) ; mListUnits . add ( org ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } catch ( NullPointerException npe ) { } finally { try { if ( dis != null ) dis . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } try { if ( bis != null ) bis . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } }
Actual De-Marshaling done here
 @param dataBytes
Actual De - Marshaling done here @param dataBytes
// TODO Auto-generated catch block // TODO Auto-generated catch block // TODO Auto-generated catch block