@ SuppressWarnings ( "unchecked" ) public static Collection < String > parseCompressionMethods ( Element compressionEl ) throws IOException , XmlPullParserException { List < Element > methodsEls = compressionEl . elements ( "method" ) ; List < String > methodsStr = new LinkedList < String > ( ) ; for ( Element methodEl : methodsEls ) { methodsStr . add ( methodEl . getText ( ) ) ; } return methodsStr ; }
Parse the available compression methods reported from the server .