src/java.base/share/classes/java/util/zip/Deflater.java
changeset 52807 bbf85239e37c
parent 52305 52a97e06a5e3
child 58242 94bb65cb37d3
equal deleted inserted replaced
52806:5ddfc90ab97d 52807:bbf85239e37c
   222      * Sets input data for compression.
   222      * Sets input data for compression.
   223      * <p>
   223      * <p>
   224      * One of the {@code setInput()} methods should be called whenever
   224      * One of the {@code setInput()} methods should be called whenever
   225      * {@code needsInput()} returns true indicating that more input data
   225      * {@code needsInput()} returns true indicating that more input data
   226      * is required.
   226      * is required.
   227      * <p>
       
   228      * @param input the input data bytes
   227      * @param input the input data bytes
   229      * @param off the start offset of the data
   228      * @param off the start offset of the data
   230      * @param len the length of the data
   229      * @param len the length of the data
   231      * @see Deflater#needsInput
   230      * @see Deflater#needsInput
   232      */
   231      */
   246      * Sets input data for compression.
   245      * Sets input data for compression.
   247      * <p>
   246      * <p>
   248      * One of the {@code setInput()} methods should be called whenever
   247      * One of the {@code setInput()} methods should be called whenever
   249      * {@code needsInput()} returns true indicating that more input data
   248      * {@code needsInput()} returns true indicating that more input data
   250      * is required.
   249      * is required.
   251      * <p>
       
   252      * @param input the input data bytes
   250      * @param input the input data bytes
   253      * @see Deflater#needsInput
   251      * @see Deflater#needsInput
   254      */
   252      */
   255     public void setInput(byte[] input) {
   253     public void setInput(byte[] input) {
   256         setInput(input, 0, input.length);
   254         setInput(input, 0, input.length);