src/jpm/dg/Compression.java
/**
	 * Decompresses a DEFLATED String.
	 * 
	 * @param inputString The compressed String.
	 * @return The decompressed String.
	 */
Decompresses a DEFLATED String.

@param inputString The compressed String.
@return The decompressed String.
Decompresses a DEFLATED String . @param inputString The compressed String . @return The decompressed String .
public static String decompress(String inputString) {
		try {
			byte[] input = inputString.getBytes("ISO-8859-1");
			Inflater decompresser = new Inflater(false);
			decompresser.setInput(input, 0, input.length);
			byte[] result = new byte[input.length * MAX_INCREASE];
			int resultLength = decompresser.inflate(result);
			String outputString = new String(result, 0, resultLength,
					"ISO-8859-1");
			decompresser.end();
			return outputString;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return inputString;
	}
public static String decompress ( String inputString ) { try { byte [ ] input = inputString . getBytes ( "ISO-8859-1" ) ; Inflater decompresser = new Inflater ( false ) ; decompresser . setInput ( input , 0 , input . length ) ; byte [ ] result = new byte [ input . length * MAX_INCREASE ] ; int resultLength = decompresser . inflate ( result ) ; String outputString = new String ( result , 0 , resultLength , "ISO-8859-1" ) ; decompresser . end ( ) ; return outputString ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return inputString ; }
Decompresses a DEFLATED String.
Decompresses a DEFLATED String .