Adding compression parameters to java and dotnet