Code example for Deflater

Methods: setInput

0
        private final Deflater deflater = new Deflater();
 
        @Override 
        public void setInput(byte[] input)
        { 
            deflater.setInput(input);
        } 
 
        @Override 
        public void setDictionary(byte[] dictionary)
        { 
            deflater.setDictionary(dictionary);
        } 
 
        @Override 
        public int compress(byte[] output)
        { 
            return deflater.deflate(output, 0, output.length, Deflater.SYNC_FLUSH);
        } 
    }