ZInputStream.read method return sometimes zero instead
of -1 at the end of stream.