public List < String > getBodyLanguages ( ) { Body defaultBody = getMessageBody ( null ) ; List < String > languages = new ArrayList < String > ( ) ; for ( Body body : getBodies ( ) ) { if ( ! body . equals ( defaultBody ) ) { languages . add ( body . language ) ; } } return Collections . unmodifiableList ( languages ) ; }
Returns all the languages being used for the bodies not including the default body .