The getTotalOut() function of the Inflater class returns the total number of uncompressed bytes Output provided till now.
public int getTotalOut()
Parameter: The function requires no parameter
Return Type: The function returns int value which is the total number of uncompressed bytes Output.
Exception: The function does not throw any exception
Example 1: use of getTotalOut() function
Note: The problem arises when the length of the Output is greater than Integer.MAX_VALUE then the result may overflow, we should use getBytesRead() function instead
Attention reader! Don’t stop learning now. Get hold of all the important Java and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.
- Deflater getTotalOut() function in Java with examples
- Inflater getAdler() function in Java with examples
- Inflater inflate() function in Java with examples
- Inflater setInput() function in Java with examples
- Inflater getBytesRead() function in Java with examples
- Inflater getBytesWritten() function in Java with examples
- Inflater finished() function in Java with examples
- Inflater getTotalIn() function in Java with examples
- Inflater needsInput() function in Java with examples
- Java.util.function.BiPredicate interface in Java with Examples
- Java.util.function.DoublePredicate interface in Java with Examples
- Java.util.function.LongPredicate interface in Java with Examples
- Java.util.function.IntPredicate interface in Java with Examples
- Java.util.BitSet class methods in Java with Examples | Set 2
- Java.util.BitSet class in Java with Examples | Set 1
- Java.util.Collections.rotate() Method in Java with Examples
- Java.util.Collections.frequency() in Java with Examples
- Java.util.Arrays.equals() in Java with Examples
- Java.util.Collections.disjoint() Method in java with Examples
- Java 8 | Consumer Interface in Java with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.